Sets $LANG to invalid value "de"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-selector (Ubuntu) |
Fix Released
|
Undecided
|
Gunnar Hjalmarsson | ||
lightdm (Ubuntu) |
Fix Released
|
Undecided
|
Gunnar Hjalmarsson |
Bug Description
Binary package hint: lightdm
When I moved from gdm to lightdm, I now get an invalid locale:
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Kann LC_ALL nicht auf die Standard-Lokale einstellen: Datei oder Verzeichnis nicht gefunden
LANG=de
LANGUAGE=de:en
LC_CTYPE="de"
LC_NUMERIC="de"
LC_TIME="de"
LC_COLLATE="de"
LC_MONETARY="de"
LC_MESSAGES=
LC_PAPER="de"
LC_NAME="de"
LC_ADDRESS="de"
LC_TELEPHONE="de"
LC_MEASUREMENT="de"
LC_IDENTIFICATI
LC_ALL=
It seems it takes the "de" from my ~/.dmrc, which was set up that way by gdm:
$ cat .dmrc
[Desktop]
Language=de
Langlist=de:en
LCMess=de_DE.UTF-8
Layout=us
Session=gnome
From that, gdm sets
LANG=de_DE.UTF-8
LANGUAGE=de:en
while lightdm sets
LC_MESSAGES=
LANG=de
LANGUAGE=de:en
I'm not entirely sure how gdm derives an appropriate $LANG locale name from just a language name. I'm subscribing Gunnar about this.
BTW, I noticed that the current lightdm does not have a language/keyboard chooser at all any more. It used to have one a week or two ago?
As soon as I noticed that lightdm will be the default dm in Oneiric, I realized that there is a need to patch lightdm similarly to how we patch gdm. It seems that lightdm uses the original (simplistic) gdm method to set the i18n environment.
gdm takes the $LANG value from ~/.profile or /etc/default/ locale. (The $LC_MESSAGES value is derived from a language name, though, either in Xsession - the language_ environment_ update( ) function - or language-selector.)
As regards language/keyboard choosers, those features seem to be available. www.freedesktop .org/wiki/ Software/ LightDM/ Design
http://
I take it that there is a need to make a design decision on whether the language/keyboard choosers shall be enabled in Ubuntu by default. Personally I'd prefer that they are.
Btw, when I messed with gdm patches I noticed that the keyboard layout chooser seems to have been dropped in gdm 3.