**Geany version:** 1.37.1

I've enabled `Files > Encodings > Use fixed encoding when opening non-Unicode 
files` with default non-Unicode encoding set to `None`.

I'm attaching three examples that demonstrate the issue(s) involved. They 
contain 8-bit (ASCII) values and I am unsuccessfully trying to open these files 
in Geany.

The first file 
[iso88591.txt](https://github.com/geany/geany/files/7247441/iso88591.txt) opens 
as ISO-8859-1 (even though the default is `None` for non-Unicode!). The example 
file contains:
`C0 61 0A`

The file [breaks.txt](https://github.com/geany/geany/files/7247440/breaks.txt), 
well, breaks (cannot be opened). It might be detected with a 16-bit encoding 
which then breaks because of odd number of bytes. Its contents are:
`C0 61 00`

And finally, the file 
[utf16le.txt](https://github.com/geany/geany/files/7247439/utf16le.txt) opens 
as UTF-16LE. It contains:
`C0 61 00 0A`

An expected outcome in the first two cases would be that the file opened with 
no encoding (due to default non-Unicode setting). In the third case, Unicode 
detection is expected, but there is another issue. When the encoding is set in 
Geany, the displayed output does not change for me (such as in the case of 
endline conversion for example). Is Geany really unable to properly open any of 
the above files?

-- 
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

Reply via email to