Bug#586023: Locale settings in .profile overwritten
Kai Weber
kai.weber at glorybox.de
Wed Jun 16 16:47:19 UTC 2010
* Josselin Mouette <joss at debian.org>:
> > > LANG can be configured from the login window, which was already the case
> > > with gdm2.
> > > LC_MESSAGES is not touched by the Xsession script.
> >
> > The script sets LC_ALL which overwrites all LC_* variables.
>
> It only does if LC_ALL is already set, and it sets it to the value
> configured in the display manager:
>
> if [ -n "$LC_ALL" ] && [ "$LC_ALL" != "$LANG" ]; then
> LC_ALL="$LANG"
> fi
Ok. Investigated the problem further with the attached script (sh -x
test.sh).
These are my settings from .profile to document the problem again:
# prefer german settings for everything except messages
LANG=de_DE.UTF-8
LC_MESSAGES=C
export LANG LC_MESSAGES
I get the expected behaviour if I select a GDM_LANG=de_DE.UTF-8 in the
login screen. Then LANG is set to de_DE.UTF-8 and my LC_*
configurations are untouched.
As far as I can tell and understand, GDM_LANG beats settings of LANG in
a ~/.profile file.
I can not argue whether this is a bug or not. Seems I am the only one
who was surprised. So, I guess you can close this bug.
Thanks for your help, best wishes
Kai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sh
Type: application/x-sh
Size: 514 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20100616/468310e9/attachment.sh>
More information about the pkg-gnome-maintainers
mailing list