Fix: accuracy locale settings

This commit is contained in:
Stas Degteff
2010-11-10 05:40:30 +00:00
parent 556f0596b0
commit f3d19cbbff
2 changed files with 4 additions and 4 deletions

View File

@@ -10,12 +10,12 @@ LUIT=`which luit`
if [ -n $SCREEN ]; then
CMD_UTF8="$SCREEN -c ${SCREENRC_GOLDED}"
else if [ -n "$LUIT" ]; then
CMD_UTF8="$LUIT -x -encoding koi8-r -- $CMD"
CMD_UTF8="export LC_ALL="ru_RU.KOI8-R"; exec $LUIT -x -encoding koi8-r -- $CMD"
else
CMD_UTF8=$CMD
fi
fi
echo "$LC_ALL $LC_CTYPE $LANG" | grep -q "ru_RU.UTF-8" \
&& (export LC_ALL="ru_RU.KOI8-R"; exec $CMD_UTF8) \
&& ($CMD_UTF8) \
|| exec $CMD