[kbd] [PATCH] dumpkeys: Use U+… in “compose” lines if KDGKBDIACRUC is available
Michael Schutte
michi at uiae.at
Mon Jun 1 13:21:05 MSD 2009
This makes dumpkeys | loadkeys idempotent even if no “-c charset” option
is used with dumpkeys.
Signed-off-by: Michael Schutte <michi at uiae.at>
---
src/dumpkeys.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/dumpkeys.c b/src/dumpkeys.c
index 30900a5..326ec37 100644
--- a/src/dumpkeys.c
+++ b/src/dumpkeys.c
@@ -249,9 +249,7 @@ dump_diacs(void) {
outchar(kd.kbdiacruc[i].diacr & 0xff);
printf(" ");
outchar(kd.kbdiacruc[i].base & 0xff);
- printf(" to ");
- outchar(convert_code(kd.kbdiacruc[i].result ^ 0xf000, TO_8BIT));
- printf("\n");
+ printf(" to U+%04x\n", kd.kbdiacruc[i].result);
}
#else
for (i = 0; i < kd.kb_cnt; i++) {
--
1.6.2.4
More information about the kbd
mailing list