diff options
-rwxr-xr-x | lang.csh | 20 | ||||
-rwxr-xr-x | lang.sh | 14 |
2 files changed, 34 insertions, 0 deletions
@@ -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 @@ -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 |