aboutsummaryrefslogtreecommitdiffstats
path: root/lang.csh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-04-23 14:07:26 -0400
committerBill Nottingham <notting@redhat.com>2008-04-23 14:07:26 -0400
commit37638eda01ac8743d6dbd85f1d699619571432a0 (patch)
treeb651b70de78e26f6209e80619764a56144bedbd4 /lang.csh
parentb8fbfde343e39337bcbddc33cab0bc30ee4fb0e3 (diff)
downloadinitscripts-37638eda01ac8743d6dbd85f1d699619571432a0.tar
initscripts-37638eda01ac8743d6dbd85f1d699619571432a0.tar.gz
initscripts-37638eda01ac8743d6dbd85f1d699619571432a0.tar.bz2
initscripts-37638eda01ac8743d6dbd85f1d699619571432a0.tar.xz
initscripts-37638eda01ac8743d6dbd85f1d699619571432a0.zip
There is no more GDM_LANG - handle pre-existing LANG (#372151, <rstrode@redhat.com>)
Diffstat (limited to 'lang.csh')
-rwxr-xr-xlang.csh25
1 files changed, 10 insertions, 15 deletions
diff --git a/lang.csh b/lang.csh
index 72f39435..6a4867b7 100755
--- a/lang.csh
+++ b/lang.csh
@@ -3,24 +3,19 @@
set sourced=0
if ($?LANG) then
set sourced=1
-else
- foreach file (/etc/sysconfig/i18n $HOME/.i18n)
- if ( -f $file ) then
- eval `grep -v '^[:blank:]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'`
- endif
- set sourced=1
- end
+ set saved_lang=$LANG
endif
-if ($?GDM_LANG) then
- set sourced=1
- setenv LANG $GDM_LANG
- if ($?LANGUAGE) then
- unsetenv LANGUAGE
- endif
- if ("$GDM_LANG" == "zh_CN.GB18030") then
- setenv LANGUAGE "zh_CN.GB18030:zh_CN.GB2312:zh_CN"
+foreach file (/etc/sysconfig/i18n $HOME/.i18n)
+ if ( -f $file ) then
+ eval `grep -v '^[:blank:]*#' $file | sed 's|\([^=]*\)=\([^=]*\)|setenv \1 \2|g' | sed 's|$|;|'`
+ set sourced=1
endif
+end
+
+if ($?saved_lang) then
+ setenv LANG $saved_lang
+ unset saved_lang
endif
if ($sourced == 1) then