loadkeys: Auto-convert “traditional”/Unicode keysyms
authorMichael Schutte <michi@uiae.at>
Tue, 14 Apr 2009 08:46:32 +0000 (10:46 +0200)
committerAlexey Gladkov <legion@altlinux.org>
Wed, 15 Apr 2009 22:34:02 +0000 (02:34 +0400)
commit8fbabd72bedcfe40f947a3f2ffda8ce5d833da95
tree2292a9fac5a7ce89591be0a0b43555ce919a32af
parent86d0ca1d4127b953d058d74403b2b10052899e50
loadkeys: Auto-convert “traditional”/Unicode keysyms

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]).

A similar patch (read_keymaps_fmt) has been in use in Debian’s version
of kbd since 2004; see <http://bugs.debian.org/251550> for a discussion.
Credit for this goes to Denis Barbier <barbier@linuxfr.org>.

Signed-off-by: Michael Schutte <michi@uiae.at>
man/man1/loadkeys.1.in
src/dumpkeys.c
src/ksyms.c
src/ksyms.h
src/loadkeys.y