summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-03-04 12:32:28 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2010-08-12 15:58:58 +0200
commit273bbb721d6da9beedf891864f9e0dc5d495deac (patch)
tree3a262215031c8d1b087d86735085bc1833ac63da /data
parentcff88c97104c021399c95ab9884f0232966b71d2 (diff)
downloadgdm-273bbb721d6da9beedf891864f9e0dc5d495deac.tar.gz
Do not overwrite $LANGUAGE and other locale variables
gdm does not have a facility to specify a list of languages for $LANGUAGE, so do not break $LANGUAGE by forcing it to $LANG (they have a completely different syntax, and different meanings). Also, if the system sets $LC_ALL (which distros should never ever do), we should not clobber this. $LINGUAS is not a runtime environment variable for locales, so just drop this. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=603853 Bug-Ubuntu: https://launchpad.net/bugs/407300
Diffstat (limited to 'data')
-rwxr-xr-xdata/Xsession.in28
1 files changed, 2 insertions, 26 deletions
diff --git a/data/Xsession.in b/data/Xsession.in
index 6c7761a4..b2d98f2f 100755
--- a/data/Xsession.in
+++ b/data/Xsession.in
@@ -146,35 +146,11 @@ fi
unset XKB_IN_USE
-# Normalize languages, some places/distros screw us up in /etc/profile,
-# so in case the user did select a language
+# Overwrite $LANG from /etc/profile (and friends) with the one picked in the
+# greeter
if [ -n "$GDM_LANG" ]; then
LANG="$GDM_LANG"
export LANG
-
- if [ -n "$LC_ALL" ]; then
- if [ "$LC_ALL" != "$LANG" ]; then
- LC_ALL="$LANG"
- fi
- else
- unset LC_ALL
- fi
-
- if [ -n "$LANGUAGE" ]; then
- if [ "$LANGUAGE" != "$LANG" ]; then
- LANGUAGE="$LANG"
- fi
- else
- unset LANGUAGE
- fi
-
- if [ -n "$LINGUAS" ]; then
- if [ "$LINGUAS" != "$LANG" ]; then
- LINGUAS="$LANG"
- fi
- else
- unset LINGUAS
- fi
fi
# run all system xinitrc shell scripts.