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

View File

@ -5,9 +5,9 @@
# for parallel mail transfer
startup_message off
# Set default encoding for new windows
defencoding koi8-r
# Exec mailer in first window
screen /bin/sh -c "binkd -c ~/fido/etc/binkd.conf"
# Set default encoding for new windows
defencoding koi8-r
# Exec Golded+ in foreground window
screen /bin/sh -c "LANG=ru_RU.KOI8-R gedlnx"