aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 548b7f0c..65c10ddf 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -22,7 +22,11 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
if [ -f /etc/sysconfig/i18n ] ; then
. /etc/sysconfig/i18n
- export LANG
+ if [ "$LANG" = "ja_JP.eucJP" -a "`/sbin/consoletype`" != "pty" ]; then
+ unset LANG
+ else
+ export LANG
+ fi
fi
# Read in our configuration