lightdm doesn't set locale correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Light Display Manager |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Console without X works as expected. GDM works. LightDM doesn't set locale information in the same way, and various apps break, like perl and bzr.
Perl, for instance, emits
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_MESSAGES = "en_US.UTF-8",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
and strace shows these syscalls that are unique to running lightdm.
open("/
open("/
open("/
open("/
'etckeeper' runs 'bzr' which says.
etckeeper warning: bzr add failed
bzr: warning: unsupported locale setting
bzr could not set the application locale.
Although this should be no problem for bzr itself, it might
cause problems with some plugins. To investigate the issue,
look at the output of the locale(1p) tool.
My /etc/default/
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
From GDM session:
cmiller@hypatia:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
I'll attach output from lightdm soon.
cmiller@ hypatia: ~$ locale en_US.UTF- 8 "en_US" "en_US" ON="en_ US"
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US
LANGUAGE=en_US:en
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES=
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
cmiller@hypatia:~$ perl -e print\;
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_MESSAGES = "en_US.UTF-8",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
cmiller@hypatia:~$ bzr info
bzr: warning: unsupported locale setting
bzr could not set the application locale.
Although this should be no problem for bzr itself, it might
cause problems with some plugins. To investigate the issue,
look at the output of the locale(1p) tool.
bzr: ERROR: Not a branch: "/home/cmiller/".
Oh, sorry: lightdm 0.3.7-0ubuntu2