diff options
author | Bill Nottingham <notting@redhat.com> | 2000-10-29 05:55:29 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-10-29 05:55:29 +0000 |
commit | ef5c4d8f0c2a3251baad0f80a7fd283a82bb72b5 (patch) | |
tree | 6091dfca14620bfbfaaa7ee73c6d4e3aa008f4d7 | |
parent | 8e179b7f2552facedde4d1676e61e56a2eee6b36 (diff) | |
download | initscripts-ef5c4d8f0c2a3251baad0f80a7fd283a82bb72b5.tar initscripts-ef5c4d8f0c2a3251baad0f80a7fd283a82bb72b5.tar.gz initscripts-ef5c4d8f0c2a3251baad0f80a7fd283a82bb72b5.tar.bz2 initscripts-ef5c4d8f0c2a3251baad0f80a7fd283a82bb72b5.tar.xz initscripts-ef5c4d8f0c2a3251baad0f80a7fd283a82bb72b5.zip |
don't turn locale settings of 'C' into en_US
-rwxr-xr-x | lang.csh | 2 | ||||
-rwxr-xr-x | lang.sh | 9 |
2 files changed, 2 insertions, 9 deletions
@@ -3,7 +3,7 @@ set sourced=0 foreach file (/etc/sysconfig/i18n $HOME/.i18n) if ( -f $file ) then - eval `sed 's|=C$|=en_US|g' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|' ` + eval `sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' $file | sed 's|$|;|' ` endif set sourced=1 end @@ -6,12 +6,7 @@ for langfile in /etc/sysconfig/i18n $HOME/.i18n ; do done if [ "$sourced" = 1 ]; then - if [ -n "$LANG" ] ; then - [ "$LANG" = "C" ] && LANG="en_US" - export LANG - else - unset LANG - fi + [ -n "$LANG" ] && export LANG || unset LANG [ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE [ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES @@ -20,7 +15,6 @@ if [ "$sourced" = 1 ]; then [ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME if [ -n "$LC_ALL" ]; then if [ "$LC_ALL" != "$LANG" ]; then - [ "$LC_ALL" = "C" ] && LC_ALL="en_US" export LC_ALL else unset LC_ALL @@ -31,7 +25,6 @@ if [ "$sourced" = 1 ]; then [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE if [ -n "$LINGUAS" ]; then if [ "$LINGUAS" != "$LANG" ]; then - [ "$LINGUAS" = "C" ] && LINGUAS="en_US" export LINGUAS else unset LINGUAS |