Support bidirectional conversion of keysyms
authorMichael Schutte <michi@uiae.at>
Tue, 28 Apr 2009 13:27:44 +0000 (15:27 +0200)
committerMichael Schutte <michi@uiae.at>
Fri, 1 May 2009 18:22:55 +0000 (20:22 +0200)
commitb9f77f5ff920867fd9a27de1220ce5ac0c266e3b
treef0bafc67a3ae5905bef15f4ee6482957a57384f0
parent68cbd1ca28598ed399280e15878d75f6040b2726
Support bidirectional conversion of keysyms

Enhance ksymtocode() and convert_code() to accept a “direction”
parameter which can be one of TO_UNICODE, TO_8BIT or TO_AUTO.  The
latter enables the old behavior of using prefer_unicode.

This prepares the codebase for another patch to make loadkeys convert
diacriticals (for the KD?KBDIACRUC ioctls present in newer kernels).

Signed-off-by: Michael Schutte <michi@uiae.at>
src/analyze.l
src/ksyms.c
src/ksyms.h
src/loadkeys.y