milkytracker / MilkyTracker

An FT2 compatible music tracker
http://milkytracker.github.io/
Other
1.7k stars 162 forks source link

SDL: Cannot enter text when using non-ascii keyboard layouts #105

Open Deltafire opened 7 years ago

Deltafire commented 7 years ago

From #milkytracker IRC:

17:59 \<eightbitbubsy> Deltafire, raina: you can't enter text in milkytracker if your keyboard layout is russian, or f.ex. other keyboard layouts that aren't ANSI/ASCII 17:59 \<eightbitbubsy> I'm trying to fix this myself because I'm using SDL too, but I just can't get it to work right 17:59 \<eightbitbubsy> converting UTF8 to ASCII with SDL_iconv() gives either Q or P as a character back, heh.. 18:01 \<eightbitbubsy> locking out a whole country (which is massive) from using the program is not fun...

Deltafire commented 7 years ago

I think the real problem here is Milkytracker's lack of unicode support.

I don't think it is feasible to add this, it's not supported by the XM format, or the custom fonts we're using, so I'm setting this to 'wontfix'.

sagamusix commented 7 years ago

I think there might be a misunderstanding here about what exactly has been reported and what should be fixed. For instance, if you set your keyboard layout to e.g. Russian, you cannot enter effect letters and parameters A-Z, you actively need to enable e.g. US keyboard layout to do so. At least on Windows, US keyboard layout is typically set as a secondary layout, so it could be a used as a fallback for key translation (OpenMPT does it like that).