colobot
colobot copied to clipboard
Program editor shows "?" instead of Cyrillic letters
Colobot v0.1.12-alpha Ubuntu 20.04
Steps to reproduce
- Switch system keyboard layout to
Russian (Russian Federation)
- Open in-game program editor
- Write few letters
- Questions marks and squares appears instead of Cyrillic letters (see picture)
So, I think the charset does not support any symbols except english letters, numbers and special symbols
Program editor can display local letters, see the first code line in the screenshot. Also if I write text file in UTF-8 placed in colobot's programs directory and then load it in program editor it displays fully correctly. The bug is that program editor adds exactly one byte for each key pressed. But some UTF-8 symbols (like Cyrillic letters) uses 2, 3 or 4 bytes.
I think issue topic must be reanmed to "Cyrillic input absolutley not work in game!" I test 2.0 version under win10 and characters can't be entered in Russian. I think it's because of UTF 8 encoding. At the same time, the symbols are displayed normally for yet exist files.
@Legoveed
So, I think the charset does not support any symbols except english letters, numbers and special symbols
If that about keyboard input. This is true. But code editor support any chars.