DavidKinder / Windows-Frotz

Z-code interpreter for Windows, based on Stefan Jokisch's Frotz interpreter core.
http://www.davidkinder.co.uk/frotz.html
GNU General Public License v2.0
62 stars 12 forks source link

Fix initialization of input code page #7

Closed DavidKinder closed 5 years ago

DavidKinder commented 5 years ago

Currently, the code uses WM_INPUTLANGCHANGE to detect a change to the language in which text is being input, but the initial input code page is assumed to be the system one (CP_ACP). This might not be true, see https://stackoverflow.com/questions/1291509/how-to-get-the-code-page-of-the-current-keyboard-layout

DavidKinder commented 5 years ago

Fixed by 4299974f4a2272d2f0bfae7a398deb79e906778c