JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 614 forks source link

little problem with character encoding #654

Closed sudge closed 9 years ago

sudge commented 9 years ago

screenshot_3

Latest build from 14.04. These keys have the same character in the russian layout, but in fact, as you can see, they are different. I thought it maybe only my laptop keyboard, but I plug usual USB keyboard and have the same result. Same character Ж with translation pack and some unknown character without it.

xycaleth commented 9 years ago

Thanks for reporting the bug. It looks like there's a small bug in the code here:

https://github.com/JACoders/OpenJK/blob/master/shared/sdl/sdl_input.cpp#L662

It should be returning 240 instead of 230. I'll fix ASAP unless someone else gets to it first.

ensiform commented 9 years ago

http://hg.libsdl.org/SDL/rev/02273530b7bf Might affect things differently in 2.0.4