On Fri May 30 16:27:33 2025 +0000, Gabriel Ivăncescu wrote:
changed this line in [version 4 of the diff](/wine/wine/-/merge_requests/7360/diffs?diff_id=181682&start_sha=872bae05a959c70247ed911ff5b4af882a5a7c54#7eb70c323881cba3d64f4e1b8764d8601efa0f61_1149_1148)
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.