aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-14 00:08:16 +0000
committerBill Nottingham <notting@redhat.com>2003-01-14 00:08:16 +0000
commit512bc70077e4d9589b91c3499c453e1e3f44f2db (patch)
treefacf19f4ead760d3caefbd767d27659b4fab456f
parentd97f4e6eeb0deaa3e2930af0080e1e031231347c (diff)
downloadinitscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar
initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar.gz
initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar.bz2
initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.tar.xz
initscripts-512bc70077e4d9589b91c3499c453e1e3f44f2db.zip
fix CJK text on the console
-rwxr-xr-xrc.d/init.d/functions6
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