kate silently corrupts iso-8859-1 files in utf-8 locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KDE Base |
Invalid
|
Undecided
|
Unassigned | ||
KDE Software Development Kit |
Fix Released
|
Medium
|
|||
kdesdk (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: kate
If I open a binary file in kate, it gives a warning that saving the file will corrupt it. Fine.
However, if I work in a utf-8 locale, open an iso-8859-1 encoded file in kate, and save it, it will be corrupted. Each non-ASCII character (that does not happen to form a valid utf-8 encoded character) is changed into an "invalid character" marker. Simply opening and saving the file is enough to lose all non-ASCII characters, and no warning is given.
Switching to the right encoding after opening the file naturally helps, if only one remembers to do it. If the files are in English, there may be only a few non-ASCII characters in the files, making them easy to miss until it is too late.
Changed in kdesdk: | |
status: | Unknown → New |
Changed in kdebase: | |
status: | New → Invalid |
Changed in kdesdk (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in kdesdk: | |
status: | New → Fix Released |
Changed in kdesdk (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in kdesdk: | |
importance: | Unknown → Medium |
can you check by doing save as what encoding kate thinks the file is in by looking at the top right of the save dialog where it will say something like "iso 8859-1" or "utf8" etc