summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2014-08-18 20:55:11 +0000
committerse <se@FreeBSD.org>2014-08-18 20:55:11 +0000
commit8b955bac573e4df3ad1c88382c80c3c6d11c68c8 (patch)
treec8bbf327116d414e9d3b91a5af57d32aefc32e3e /tools
parent21285cbfcd2dee19346b7c29aa33a4a1e186ef80 (diff)
downloadFreeBSD-src-8b955bac573e4df3ad1c88382c80c3c6d11c68c8.zip
FreeBSD-src-8b955bac573e4df3ad1c88382c80c3c6d11c68c8.tar.gz
Minor fixes to convert-keymap.pl (conversion of 8bit characters in the form
'x' with high bit set) and to KBDFILES.map (fix encodings and comment out a few redundant keymap files). MFC after: 3 days
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/vt/keymaps/KBDFILES.map22
-rwxr-xr-xtools/tools/vt/keymaps/convert-keymap.pl2
2 files changed, 12 insertions, 12 deletions
diff --git a/tools/tools/vt/keymaps/KBDFILES.map b/tools/tools/vt/keymaps/KBDFILES.map
index 81617e3..f4e5a66 100644
--- a/tools/tools/vt/keymaps/KBDFILES.map
+++ b/tools/tools/vt/keymaps/KBDFILES.map
@@ -6,13 +6,13 @@ ISO8859-15 be.iso.acc.kbd be.acc.kbd
ISO8859-5 bg.bds.ctrlcaps.kbd bg.bds.kbd
ISO8859-5 bg.phonetic.ctrlcaps.kbd bg.bds.ctrlcaps.kbd
-ISO8859-1 br275.iso.kbd br.kbd
-ISO8859-1 br275.iso.acc.kbd br.acc.kbd
-CP850 br275.cp850.kbd br.kbd.from-cp850
+#ISO8859-1 br275.iso.kbd br.kbd.from-iso1 (only AltGr-Shift-6 differs from CP850)
+ISO8859-1 br275.iso.acc.kbd br.kbd
+CP850 br275.cp850.kbd br.noacc.kbd
-CP1131 by.cp1131.kbd by.kbd.from-cp1131
-CP1251 by.cp1251.kbd by.kbd.from-cp1251
-ISO8859-5 by.iso5.kbd by.kbd.from-iso5
+#CP1131 by.cp1131.kbd by.kbd.from-cp1131 (Shift-3 not OK)
+#CP1251 by.cp1251.kbd by.kbd.from-cp1251 (result identical to CP1251)
+ISO8859-5 by.iso5.kbd by.kbd
ISO8859-2 ce.iso2.kbd centraleuropean.kbd
@@ -119,11 +119,11 @@ ISO8859-1 swissgerman.macbook.acc.kbd ch.macbook.acc.kbd
ISO8859-9 tr.iso9.q.kbd tr.kbd
-ISO8859-1 uk.iso.kbd uk.kbd
-ISO8859-1 uk.iso-ctrl.kbd uk.capsctrl.kbd
-CP850 uk.cp850.kbd uk.kbd.from-cp850
-CP850 uk.cp850-ctrl.kbd uk.capsctrl.kbd.from-cp850
-ISO8859-1 uk.dvorak.kbd uk.dvorak.kbd
+ISO8859-15 uk.iso.kbd uk.kbd
+ISO8859-15 uk.iso-ctrl.kbd uk.capsctrl.kbd
+#CP850 uk.cp850.kbd uk.kbd.from-cp850 (no ¤ and different Alt/Alt-Shift encodings)
+#CP850 uk.cp850-ctrl.kbd uk.capsctrl.kbd.from-cp850 (no ¤ and different Alt/Alt-Shift encodings)
+ISO8859-15 uk.dvorak.kbd uk.dvorak.kbd
ISO8859-1 us.iso.kbd us.kbd
ISO8859-1 us.iso.acc.kbd us.acc.kbd
diff --git a/tools/tools/vt/keymaps/convert-keymap.pl b/tools/tools/vt/keymaps/convert-keymap.pl
index ce2408a..42349fa 100755
--- a/tools/tools/vt/keymaps/convert-keymap.pl
+++ b/tools/tools/vt/keymaps/convert-keymap.pl
@@ -46,7 +46,7 @@ sub convert_token
if $C =~ m/^(\d+)$/; # decimal number
return local_to_UCS_code(chr(hex($1)))
if $C =~ m/^0x([0-9a-f]+)$/i; # hex number
- return local_to_UCS_code($1)
+ return local_to_UCS_code(chr(ord($1)))
if $C =~ m/^'(.)'$/; # character
return "<?$C?>"; # uncovered case
}
OpenPOWER on IntegriCloud