Red Hat Bugzilla – Bug 74263
/bin/unicode_start damages keymaps
Last modified: 2007-04-18 12:46:47 EDT
Version: kbd-1.06-24, or the (null) one The dumpkeys | loadkeys --unicode line in /bin/unicode_start damages keymaps, because there is apparently no way to get the needed information about encoding of the original keymap. To reproduce: 1. Use kbdconfig to set keyboard to Czech (keymap name cz-lat2) 2. Login on console, press AltGr-2 (or 3, 4, 5, 6) 3. run 'loadkeys /lib/kbd/keymaps/i386/qwerty/cz-lat2.kmap.gz' 4. press the same keys again. The result is wrong in 2., but right in 4. I.e. pressing AltGr-2, 3, 4, 5, 6 produces "latin small {e, s, c, r, z} with caron", respectively.
The trouble is that dumpkeys uses by default charset iso-8859-1 when dumping the keys, but the original keymap is in iso-8859-2. The charset information from the original keymap used by loadkeys has not been stored anywhere, so dumpkeys has no way to obtain it. I'm not sure this can be fixed nicely. A possible workaround for RHL has been sugested as #74264.
Sorry, I am typing this in my Valhalla box, so the steps to reproduce were completely wrong )-: Next try: To reproduce: 1. Use kbdconfig to set keyboard to Czech (keymap name cz-lat2) 2. Login on console, press AltGr-2 (or 3, 4, 5, 6) (result is OK) 3. reboot 4. Login on console, press the same keys again (result is bad) 3. run 'loadkeys --unicode cz-lat2' 4. press the same keys again. (result is OK).