Version: (using KDE 4.2.4) OS: Linux Installed from: Ubuntu Packages I have some files, one of which I'm attaching here, which, although perfectly R/W by the system, are marked R/O by Kate. No apparent explanation is given, both in console output or elsewhere.
Created attachment 34763 [details] Normal text file showing the problem.
I'm getting an encoding error while opening that file: "The file X was opened with UTF8 encoding but contained invalid characters. It is set to read-only mode as saving may destroy the content" You probably checked the "Do not show this message again" checkbox some time before in the same dialog and now you are not getting the proper explanation. Marking as INVALID as this is not a bug. Thanks
Hold on a little, please. The computer on which I had this have just been installed. And not only one computer showed this, but three, 2 of which were just cleanly reinstalled from scratch. Playing with some other files with the same behaviour, I too have managed to trigger the message. The thing is that, sometimes, kate _silently_ enters his R/O mode without any warning. The fact that sometimes I too get the message should mean that I _never_ clicked the "Don't show this again" check, right?
While fiddling with the file more, I discovered something. The message you mention only shows, for me, if I open the attached file directly from Kate. In other words, if I first open an empty Kate window, and then I open the file. If instead I try opening the file from Dolphin, no message is displayed, so I have no clue what's going on. Any chance you opened that file from inside an already opened Kate window? If yes, can you try opening it again from Dolphin?
Thanks for your discoverings. I will check opening the file without Kate later. I'm reopening the bug report.
Here using: Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76 Date: Fri Jun 26 13:45:37 2009 +0200) KDE: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090624)) kdelibs svn rev. 987857 / kdebase svn rev. 987857 on ArchLinux i686 - Kernel 2.6.30 I can confirm that opening the testcase file using Dolphin, KWrite will not alert about the file containing invalid characters and being opened as read-only. Thanks
It seems this was reported previously as bug 189207. Merging. Thanks *** This bug has been marked as a duplicate of bug 189207 ***