summaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-10-18 16:36:10 +0000
committerBill Nottingham <notting@redhat.com>2006-10-18 16:36:10 +0000
commitcfc45d608bb0d01626f255b82e0b1f7542b402bb (patch)
tree3974cda23346f4da8472a03e13242b94ece8588e /lang.sh
parent83b95499a13a81fa44a39fa686d8f97c987a06c9 (diff)
blacklist CJKI on the virtual console (#120819)
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang.sh b/lang.sh
index 19bf9158..7c0332b2 100755
--- a/lang.sh
+++ b/lang.sh
@@ -65,6 +65,13 @@ if [ "$sourced" = 1 ]; then
*.utf8*|*.UTF-8*)
if [ "$TERM" = "linux" ]; then
if [ "$consoletype" = "vt" ]; then
+ case $LANG in
+ ja*) LANG=en_US.UTF-8 ;;
+ ko*) LANG=en_US.UTF-8 ;;
+ zh*) LANG=en_US.UTF-8 ;;
+ en_IN*) ;;
+ *_IN*) LANG=en_US.UTF-8 ;;
+ esac
[ -x /bin/unicode_start ] && /sbin/consoletype fg && /bin/unicode_start $SYSFONT $SYSFONTACM
fi
fi
@@ -72,6 +79,13 @@ if [ "$sourced" = 1 ]; then
*)
if [ "$TERM" = "linux" ]; then
if [ "$consoletype" = "vt" ]; then
+ case $LANG in
+ ja*) LANG=en_US ;;
+ ko*) LANG=en_US ;;
+ zh*) LANG=en_US ;;
+ en_IN*) ;;
+ *_IN*) LANG=en_US ;;
+ esac
[ -x /bin/unicode_stop ] && /sbin/consoletype fg && /bin/unicode_stop
fi
fi