Summary: | Kate silently corrupts iso-8859-1 files in utf-8 locale | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | usrrgt |
Component: | encoding | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christoph, claudiomkd, giselux |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
usrrgt
2008-10-25 16:47:15 UTC
Any plans to fix this bug any time? I am using Kate 3.2.2 (KDE 4.2.2) and it is unbelievable that still I have to manually convert the file from ISO-8859-1 to UTF-8 if I want to edit it with kate. UTF8 files are opened properly, but ISO-8859 files show strange symbols instead of local characters. Besides the file is opened in read-only mode, and if I manually change the encoding to ISO-8859-1, the tildes do not work (for example, é is typed as ´e). The behaviour when opening files is inconsistent, too: If you open a file with ISO_8859-1 or CP850 encodings through the 'open'-dialog of Kate you will get a warning about incorrect characters and a hint that the file will be opened 'read only'. When opening by single/double click in Dolphin it is is also opened 'read only' but without any warning or hint. It would be a great improvement if Kate could recognize the most frequent encodings (ISO 8859-1, Windows-1252, CP850, CP437) automaticly (without headers) when opening a file. Using OKTETA is even worse: You have no chance to open a file by using the right encoding from the beginning, because the 'encoding'-field is missing in the 'open'-dialog of OKTETA. It's possible to change the view on the characters by using 'view'->'characters', but the status is still 'read only' although the 'read only'-flag in the 'file'-menu isn't set. Regardless of the way you opened the file there's never a warning or hint. Summary for Okteta : Files containing non-UTF-8 characters are always opened 'read-only' in OKTETA, there's no hint/warning about that and you can change the view but you cannot switch off the 'read only' status. So there's no chance to edit those files! Please tell me if I'm wrong! P.S.: I'm using Kate 3.22 and Okteta 0.21 under KDE 4.22 (Kubuntu jaunty) Fixed in KDE 4.5, sorry, unable to backport this, as I have rewritten all parts affecting this. Now you will get a warning, that the encoding is wrong (or, if you have not altered the fallback encoding, kate will just load it as latin-15, which won't kill anything). The new basic idea is: 1. try standard encoding 2. if that not works out, try to detect encoding by BOM or use fallback encoding (default is latin-15) |