On Fri May 30 16:30:53 2025 +0000, Gabriel Ivăncescu wrote:
I fixed it in gecko, opened [wine-gecko MR !31](https://gitlab.winehq.org/wine/wine-gecko/-/merge_requests/31) and seems to work. But it seems scripts suffered from similar issue. I pushed new version here with todo tests and fixes for scripts since we already handled it in mshtml. Note that I gave up using IsTextUnicode and instead just check the first WCHAR because it seems good enough, correct me if I'm wrong. Those files must start with ASCII to be valid.
We use `iswalnum` for identifier chars, so they may be multi-byte in utf-8. I don't see a way to do that detection fully correctly, through.