Here's a sample text file where the detection doesn't work - encoding CP932.
[test.txt](https://github.com/geany/geany/files/14471001/test.txt)

Detection works when I add `G_REGEX_RAW` to function `g_regex_new`.

>From Glib source: if G_REGEX_RAW is not used then it uses the compile option 
>PCRE2_UTF and if G_REGEX_RAW is used then it uses match option 
>PCRE2_NO_UTF_CHECK.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3777#issuecomment-1974937457
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3777/[email protected]>

Reply via email to