From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914 Description of problem: loadkeys -s still been able to erase keyboard strings in the kernel, but there is no way to load new strings descriptors anymore. How reproducible: Always Steps to Reproduce: 1.dumpkeys > /tmp/default_keys 2.loadkeys -s 3.loadkeys ru 4.dumpkeys > /tmp/ru_keys 5.See difference in near bottom part, just before compose-s list. 6.copy loadkeys binary from mandrake "consoletools" package. 7.run mandrake's loadkeys with the same keymap and see difference. Actual Results: linux console is non-functional anymore for national people, and products with extensive using of keyboard midifiers. Expected Results: strings must be overwritten Additional info: Result of dumpkeys with custom keymap table, loaded by mandrake's loadkeys: -------------------------------- [...] shift control alt keycode 126 = AltGr_Lock keycode 127 = string F1 = "\033[[A" string F2 = "\033[[B" [...] string F22 = "\033[36~" string F101 = "\033[7^" string F102 = "\033[8^" string F103 = "\033[5B" string F104 = "\033[5A" string F105 = "\033[5D" string F106 = "\033[5C" string F107 = "\033[2;5~" string F108 = "\033[3^" string F109 = "\033[3$" string F110 = "\033{7~" compose '!' '!' to '?' compose '"' 'A' to '?' [...] --------------------------------------- --w
*** Bug 74065 has been marked as a duplicate of this bug. ***
I can reproduce this problem exactly. Is there a possible fix in one of the rawhide packages? I've been looking to map some of my useless "Microsoft Kbd" keys for use on the console and it seems that there's no way of doing it.
Although loadkeys is broken in the distribution, I downloaded the source (kbd-1.06-26.src.rpm) and had no trouble compiling and installing it. The compiled from source loadkeys will load strings and in every way that I can tell performs according to the documentation in man loadkeys and man 5 keymaps. If you need a solution now and have the development tools (compiler, make, etc.) this may work for you.
A bug in gcc as distributed wiht RH8.0 is causing the problem with loadkeys. Compile without the -mcpu=i686 make the bug go away. Compile with version 2.96 of gcc makes the bug go away. The bug in gcc is triggered when you pass a structure by contents instead of pasing the address of the structure in a subrutine call, and some other conditions also plays a role as the bug is not always triggered. Villy
behavior does not exist with current compiler. closing.