-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Journal text rendering broken for non-English languages #1403
Comments
The discussion about the Kalamee journal is here(ish): https://discord.com/channels/282045216221822978/1053344855876714537/1114318208560807956 Since @DoobesURU was testing it, I'm going to venture that it was more likely a H'uru client. |
oh good, that is a much more reasonable time period to try to bisect 😅 8b27f1e...d09814f is the diff |
Previously it was using |
It was indeed #1316. Result of
The skipped commits are because I introduced a crash there and only noticed and fixed it a few commits later. That part is probably worth looking at... (I'm done for tonight though) |
For the ST::string overloads of the text rendering methods, the firstClippedChar output parameter still counted in wchar_t units, not UTF-8 bytes as needed for indexing into ST::string.
Fix journals not rendering Unicode text correctly (fixes #1403)
Originally discovered here: H-uru/moul-assets#237 (review)
Several journals render badly in non-English languages. At some point after a non-ASCII character appears, the text stops rendering until the end of the current double page. The following pages sometimes work, sometimes they're partially broken too, and sometimes also completely blank. Sometimes a page renders partially at first, but then turns blank after flipping back and forth a few times.
This affects at least the credits journal, Yeesha's book for the pillar ages on the Relto bookshelf, and the KI/Nexus notebook in the hood classroom. I've reproduced this with French, German, and Russian.
How it's supposed to look in German - with Gehn 1.28, based on 2f1c126 from 2021-04-09:
How it looks right now - with 730d2a3 from 2023-06-21 and H-uru/moul-assets@08f4fdf from 2023-05-17:
I have no idea yet what causes this bug or when it was introduced (other than "sometime in the last two years").
The text was updated successfully, but these errors were encountered: