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>