* Denis Barbier [2004-07-01 22:26:25+0200]
> [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;
> }
Great. It works for the Turkish unicode keymap (trqu). Now the patched
loadkeys can handle both types (ISO and unicode) of Turkish keymaps.
Thanks.
--
roktas
Attachment:
signature.asc
Description: Digital signature