This PR fixes a problem with in-file encoding detection described in #3777 where detection fails when the first 512 bytes isn't a valid UTF-8 string. The solution is to treat the first 512 bytes as raw bytes. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3779
-- Commit Summary --
* Fix in-file encoding detection (#3777)
-- File Changes --
M src/encodings.c (2)
-- Patch Links --
https://github.com/geany/geany/pull/3779.patch https://github.com/geany/geany/pull/3779.diff
Closed #3779.
This is a good fix, but was actually already part of #3716 (b23201c01390e6ed6d631cf232e404691ffe91ec), which is now merged. Good work though!
github-comments@lists.geany.org