Dosbox can select automatically host-matching keyboard layout under Windows.
The selected layout for hungarian language is 'hu' instead of 'hu208'.
'hu' is a layout based on 101-key qwerty keyboard.
The standard hungarian keyboard has 102-key and qwertz layout.
'hu208' is a layout based on the standard keyboard.
Patch is attached.
It enables the 102-key layout as default and add ability to automatically choice between 101 and 102 key layouts.
The code in cvs works incorrectly. It selects layout pl214 instead of hu208 or hu because '040E' is recognized as '0415'. Probably the code converting layoutID_string to int is not correct for hexadecimal numbers A-F. Maybe using function ConvHexWord is a solution.
Thanks, you're right, full hex translation should be used.
New patch layout_switch.diff. It corrects non-standard additional keyboard layout loading and switching a bit.