diff options
author | Bill Nottingham <notting@redhat.com> | 2003-01-14 00:08:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-01-14 00:08:16 +0000 |
commit | 512bc70077e4d9589b91c3499c453e1e3f44f2db (patch) | |
tree | facf19f4ead760d3caefbd767d27659b4fab456f /rc.d/init.d | |
parent | d97f4e6eeb0deaa3e2930af0080e1e031231347c (diff) | |
download | initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar.gz initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar.bz2 initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar.xz initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.zip |
fix CJK text on the console
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/functions | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index c762275c..bd470a09 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -23,10 +23,12 @@ if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" ] ; then . /etc/sysconfig/i18n if [ "$CONSOLETYPE" != "pty" ]; then case "${LANG:-}" in - ja_JP.eucJP|ko_KR.eucKR|zh_CN.GB2312|zh_TW.Big5|zh_CN.GB18030) - unset LANG;; + ja_JP.*|ko_KR.*|zh_CN.*) + export LC_MESSAGES=en_US + ;; *) export LANG + ;; esac else export LANG |