Re: (forw) Bug#251550 acknowledged by developer
[Eugeniy Meshcheryakov]
> This breaks keyboard handling: unicode keymaps (ua-utf,
> consoel-cyrillic unicode keymaps) does not work (I can enter only
> ASCII symbols).
My bad, here is a patch (it was tested against my patched kbd, and
should work as well against console-tools).
Denis
--- src/ksyms.c 2004-06-27 21:39:36.000000000 +0200
+++ src/ksyms.c 2004-07-01 22:05:37.000000000 +0200
@@ -1801,8 +1801,8 @@
return code;
ioctl(getfd(NULL), KDGKBMODE, &kbd_mode);
if (kbd_mode == K_UNICODE && KTYP(code) >= syms_size) {
- if (KVAL(code ^ 0xf000) < 0x80)
- return K(KT_LATIN, KVAL(code ^ 0xf000));
+ if ((code ^ 0xf000) < 0x80)
+ return K(KT_LATIN, code ^ 0xf000);
else
return code;
}
Reply to: