aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-10-18 16:35:40 +0000
committerBill Nottingham <notting@redhat.com>2006-10-18 16:35:40 +0000
commit29ab1c774b9b615c3d5c6f8cd801a2d6fa531d78 (patch)
treec2167a7ea22d855c8281e4b56a88398ec1db07e6
parent642a9b91bcd154a9510e70ec7e5e503da1526145 (diff)
downloadinitscripts-29ab1c774b9b615c3d5c6f8cd801a2d6fa531d78.tar
initscripts-29ab1c774b9b615c3d5c6f8cd801a2d6fa531d78.tar.gz
initscripts-29ab1c774b9b615c3d5c6f8cd801a2d6fa531d78.tar.bz2
initscripts-29ab1c774b9b615c3d5c6f8cd801a2d6fa531d78.tar.xz
initscripts-29ab1c774b9b615c3d5c6f8cd801a2d6fa531d78.zip
blacklist CJKI on the virtual console (#120819)
-rwxr-xr-xlang.csh20
-rwxr-xr-xlang.sh14
2 files changed, 34 insertions, 0 deletions
diff --git a/lang.csh b/lang.csh
index 4c815d30..25d59f0c 100755
--- a/lang.csh
+++ b/lang.csh
@@ -71,6 +71,16 @@ if ($sourced == 1) then
if ( $?TERM ) then
if ( "$TERM" == "linux" ) then
if ( "$consoletype" == "vt" ) then
+ switch ($LANG)
+ case en_IN*:
+ breaksw
+ case ja*:
+ case ko*:
+ case zh*:
+ case *_IN*:
+ setenv LANG en_US.UTF-8
+ breaksw
+ endsw
if ( -x /bin/unicode_start ) then
if { /sbin/consoletype fg } then
if ( $?SYSFONT ) then
@@ -90,6 +100,16 @@ if ($sourced == 1) then
if ( $?TERM ) then
if ( "$TERM" == "linux" ) then
if ( "$consoletype" == "vt" ) then
+ switch ($LANG)
+ case en_IN*:
+ breaksw
+ case ja*:
+ case ko*:
+ case zh*:
+ case *_IN*:
+ setenv LANG en_US
+ breaksw
+ endsw
if ( -x /bin/unicode_stop ) then
if { /sbin/consoletype fg } then
/bin/unicode_stop
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