gedit automatically detected character encoding in open file dialog box
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Hello,
In gedit's open file dialog box, there is an option for choosing the character encoding. The default option is "Automatically Detected" which I am afraid it doesn't always work.
I am attaching a file (gr.srt) with encoding (Greek) ISO-8859-7. I verified its encoding using the chardet utility in the terminal and I am also attaching chardet.png that shows exactly this. If you open this file (gr.srt) with gedit and encoding auto detection and you leave your mouse over the respective file's tab, a hint will appear reporting the Western ISO-8859-15 as the detected encoding. Of course as a result, the file's content is unreadable. (Attached geditWrong.png)
If you open the same file by choosing (Greek) ISO-8859-7 in the open file dialog box, the respective hint properly shows the correct encoding and the file is readable. (Attached geditCorrect.png).
Bear in mind that once you have opened the file with ISO-8859-7, it will always open correctly even if you choose "Automatically Detected". It seems that gedit remembers your option and doesn't actually try to detect the actual encoding. In order to reset to the initial problematic behavior, you have to manually select (Western) ISO-8859-15 once. It seems to me that it is very probable that this is another issue but yet related and it will also help you to not get confused in your tests.
Finally, I would like to grab this opportunity and ask you to add an encoding choice in gedit's menu because in the open file dialog, it is quite "hidden" in the sense that most people open files by double clicking them. I even found this option on the net, it didn't even cross my mind that such an option would be available there. Also, I have found quite many frustration reports on the Internet from people who use non Latin alphabets, I have even found a bug report that was closed because the reporter unfortunately failed to provide the required evidence and instructions.
Thank you very much.
P.S
Since I am only allowed to attach one file, note that all files I have mentioned are included in geditEncoding.
Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https:/ /wiki.ubuntu. com/Bugs/ Upstream/ GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.