[kbd] [PATCH] loadkeys: Auto-convert “traditional”/Unicode keysyms

Alexey Gladkov gladkov.alexey at gmail.com
Wed Apr 15 01:37:32 MSD 2009


14.04.2009 21:45, Michael Schutte wrote:
> The Linux kernel distinguishes between K(KTYP, KVAL) keysyms and Unicode
> characters.  This patch makes loadkeys query the console’s Unicode mode
> and convert between the two keysym types according to the result.  The
> theoretical advantage is that less keymaps need both an 8-bit and a
> Unicode variant (cf. trq[u], ua[-utf]).

I have a problem with your patch:

LANG: ru_RU.UTF-8
keymap: data/keymaps/i386/qwerty/ruwin_cplk-UTF-8.map

The difference between the old and the new behavior is attached. This
is 'dumpkeys -n' output.

For example keycode 52 = U+044e -> U+f44e:

$ /usr/bin/printf '\u044e\n\uf44e\n'
ю


First character is cyrillic 'yu':

http://www.fileformat.info/info/unicode/char/044e/index.htm

Second is:

http://www.fileformat.info/info/unicode/char/f44e/index.htm

And also, you have not updated the documentation for new behaviour.

-- 
Rgrds, legion

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: auto-detect-keymaps-ru.diff
URL: <http://lists.altlinux.org/pipermail/kbd/attachments/20090415/3ac244e0/attachment-0001.ksh>


More information about the kbd mailing list