Closed matthiakl closed 1 year ago
Right... Don't have great ideas of proper fix right now - will comeback to this eventually
Now the game does not freeze, but no characters are shown.
Xutf8LookupString(xic, &xev.xkey, txt, sizeof(txt)-1, ksym, &status);
only returns the char in txt
on KeyPress, but on KeyRelease it is empty, resulting in an empty code
in GameMenu::SavNameDialog::keyUpEvent
Fix should be already in opengothic upstream. Closing
Trying to type non-ASCII characters (e.g.
ü ö ä
) in the G2 save menu causes the game to freeze. It enters an infinite loop here, becausel
remains0
: https://github.com/Try/Tempest/blob/783c650d3e9d18105d7eb4bda13007c07ab64d00/Engine/utility/textcodec.cpp#L47-L49ü
gives the code 0xfc on Linux sinceXLookupString
returns latin-1 encoding, not utf8.