summaryrefslogtreecommitdiff
path: root/usr/src/cmd/loadkeys
diff options
context:
space:
mode:
authorja208388 <none@none>2008-03-17 05:40:17 -0700
committerja208388 <none@none>2008-03-17 05:40:17 -0700
commitc24275a9bcbb4724f5dfc1d56a4b03c89195203f (patch)
tree6bd3afaa6f60e17913d6a1f3e6decc07b5f0424b /usr/src/cmd/loadkeys
parent551528deac7e8682dca965cd2436b9d4662513a4 (diff)
downloadillumos-joyent-c24275a9bcbb4724f5dfc1d56a4b03c89195203f.tar.gz
PSARC 2008/193 kbd -s output change from "Taiwanese" to "Traditional-Chinese" \
6663846 kbd -s says "Taiwanese" and shouldn't
Diffstat (limited to 'usr/src/cmd/loadkeys')
-rw-r--r--usr/src/cmd/loadkeys/set_keyboard_layout10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/cmd/loadkeys/set_keyboard_layout b/usr/src/cmd/loadkeys/set_keyboard_layout
index a5ee80a60c..b2b81b3bc8 100644
--- a/usr/src/cmd/loadkeys/set_keyboard_layout
+++ b/usr/src/cmd/loadkeys/set_keyboard_layout
@@ -21,7 +21,7 @@
#
#pragma ident "%Z%%M% %I% %E% SMI"
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
@@ -38,6 +38,14 @@ else
exit 0
fi
+# The firmware on the keyboard may report "Taiwanese" and so
+# translate it to the new "Traditional-Chinese" name as this is
+# the preferred name to use.
+if [ "$KBD_LAYOUT_NAME" = "Taiwanese" ]
+then
+ KBD_LAYOUT_NAME="Traditional-Chinese"
+fi
+
if test -n "$KBD_LAYOUT_NAME"
then
KBD_LAYOUT_NAME_STRING="^$KBD_LAYOUT_NAME="