[Github-comments] [geany/geany] Geany encoding determination broken? (#2910)

drws notifications at xxxxx
Thu Sep 30 22:03:07 UTC 2021


0. While I see what you mean, there is still (too?) big of a difference in notifying the user between both examples. In one case, user is bombarded with confirmation windows after every action and in the other, Message Window has to be open for it to be seen. All I'm saying that between these two comparative examples, one or the other is probably exaggerated in its own way.

1. I added an adjective _extended_ in front of _ASCII_ to the OP so as to stop these redundant ASCII reexplanations. By _8-bit ASCII_ I meant _ASCII-compatible 8-bit extension_ the first time around.

2. You are right in both my poor choice of a word and the fact that suggesting a better nomenclature would be more productive. I do have an idea: shouldn't _Without encoding_ be simply named _ASCII_?

The examples I provided were minimal examples from an actucal raw ASCII dump where only a few characters here and there were corrupted due to transient events on the RS-232 line during a legacy device bootup. While it is debatable whether such data calls for a binary editor, the fact remains that Geany is perfectly able to display similar files and fails only at some due to buggy encoding detection. If some, but not all values are removed (in a kilobyte-grade log, not minimal examples here), the file is sometimes opened _properly_, meaning 7-bit ASCII characters are displayed and other values are displayed with hex symbols. Other times it's an UTF-16 jungle because of a single 8-bit value occurrence or similar.

So the encoding detection logic works sporadically even with longer files. Why wouldn't user be able to manually set encoding if autodetection is not bulletproof and displayed encoding cannot be changed without a reload? Geany is perfectly able to handle some hybrid ASCII-binary files and its encoding detection logic is the only thing preventing it to handle the remaining ones.

Also, I tried to set something other than _Without encoding_ in `Preferences > Files > Encodings > Default encoding (existing non-Unicode files)` and [iso88591.txt](https://github.com/geany/geany/files/7247441/iso88591.txt) still opens as ISO-8859-1. Does this also not add up to you or am I missing something?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2910#issuecomment-931736062
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210930/00cefb50/attachment.htm>


More information about the Github-comments mailing list