diff options
author | Bill Nottingham <notting@redhat.com> | 1999-11-16 17:19:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-11-16 17:19:16 +0000 |
commit | 266c30d60f71e057a4f7e9348552cc88bdb6a56e (patch) | |
tree | f137a8b89d24848035ad74e156bf892856a00ae3 | |
parent | 06e48922c4fac8303d240ce47f0ab97c26ffdd9a (diff) | |
download | initscripts-266c30d60f71e057a4f7e9348552cc88bdb6a56e.tar initscripts-266c30d60f71e057a4f7e9348552cc88bdb6a56e.tar.gz initscripts-266c30d60f71e057a4f7e9348552cc88bdb6a56e.tar.bz2 initscripts-266c30d60f71e057a4f7e9348552cc88bdb6a56e.tar.xz initscripts-266c30d60f71e057a4f7e9348552cc88bdb6a56e.zip |
fix logic in lang.csh
-rwxr-xr-x | lang.sh | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -4,7 +4,9 @@ if [ -f /etc/sysconfig/i18n ]; then . /etc/sysconfig/i18n if [ -n "$LANG" ] ; then [ "$LANG" = "C" ] && LANG="en_US" - export LANG || unset LANG + export LANG + else + unset LANG fi [ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE @@ -14,12 +16,16 @@ if [ -f /etc/sysconfig/i18n ]; then [ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME if [ -n "$LC_ALL" ]; then [ "$LC_ALL" = "C" ] && LC_ALL="en_US" - export LC_ALL || unset LC_ALL + export LC_ALL + else + unset LC_ALL fi [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE if [ -n "$LINGUAS" ]; then [ "$LINGUAS" = "C" ] && LINGUAS="en_US" - export LINGUAS || unset LINGUAS + export LINGUAS + else + unset LINGUAS fi [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET |