Menu

[PATCH] A couple of Unicode-related fixes

2023-07-08
2024-03-30
  • Thomas Glamsch

    Thomas Glamsch - 2023-07-08

    Hi there,

    I created a patch including a couple of unicode-related fixes:

    • On Windows, wchar_t and std::wstring are 16 bit characters. Therefore, UnicodeStr in translations.cpp was broken for larger codepoints. I removed it and replaced it with sf::String::fromUtf8.
    • If your locale's default encoding is not UTF-8, translated course descriptions were not interpreted as UTF-8 (neither for the line breaking algorithm nor for rendering).
    • If your locale's default encoding is not UTF-8, non-ASCII characters in the credits screen were incorrectly rendered. This was already fixed on trunk (on revision r731), I've ported the relevant changes to the 0.8 branch.
     

    Last edit: Thomas Glamsch 2023-07-08
  • Marko Lindqvist

    Marko Lindqvist - 2024-03-30

    Thanks. Pushed.

     

Log in to post a comment.