Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388247 - x11-misc/lightdm has localization problems
Summary: x11-misc/lightdm has localization problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Markos Chandras (RETIRED)
URL: https://bugs.launchpad.net/ubuntu/+so...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-23 18:31 UTC by Misha
Modified: 2011-11-06 22:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Misha 2011-10-23 18:31:28 UTC
I'm using funtoo. and have set locale as en_US-UTF8 and added russian support. after i installed lightdm i get locales like that:
~locale
LANG=

LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE=POSIX
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

and when i run locale-gen && env-update && source /etc/profile , it shows right one in that terminal, but after reboot or if i open new terminal it's the same.

but after i switched to onsole (alt+ctrl+f1) i have right one there. So i restarted computer with GDM it was fine. so i assume it happens only with LightDM. i don''t know if it's OS related bug or LightDM bug



Reproducible: Always

Steps to Reproduce:
1.Set LightDM as default display manager in /etc/conf.d/xdm
2. boot with it
3.here we go



Anything more i should provide? Btw i use ~amd64 system. And it's latest lightdm so i can't tell of earlier versions
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-10-23 18:37:18 UTC
Try lightdm-1.1.0-r1, as reporting bugs for older version with same KEYWORDS is kind of pointless
Comment 2 Fabian Köster 2011-10-23 21:16:14 UTC
I am also experiencing this problem with x11-misc/lightdm-1.1.0-r1.

This problem does not occur with x11-misc/slim.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2011-10-24 07:36:31 UTC
Not sure if this is a Gentoo specific problem. It seems to me that it is not. Can you please report it to upstream developers?

https://bugs.launchpad.net/lightdm

I searched for similar bugs but I couldn't find any
Comment 4 Fabian Köster 2011-10-24 07:45:14 UTC
I think this one fits quite well:

https://bugs.launchpad.net/lightdm/+bug/797249
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2011-10-24 07:47:10 UTC
Ooops yeah
Comment 6 Fabian Köster 2011-10-24 07:50:44 UTC
Oh, just noticed it is a dup (of [1]) and it is already fixed.

I am doing some investigation here...

[1] https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/793366
Comment 7 Fabian Köster 2011-10-24 08:00:32 UTC
I think the right way on Gentoo to set the locale system-wide is to put something like this:

LANG="de_DE.utf8"
LC_COLLATE="C"

into /etc/env.d/02locale.

But LightDM does not seem to use this values, the greeter's interface is still English and the locale is also not forwared to the user's session.

But I do not know how to solve this issue correctly.
Comment 8 Fabian Köster 2011-10-24 08:04:16 UTC
There is also a bug-report in Ubuntu regarding this issue:

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/794315
Comment 9 Misha 2011-10-25 07:36:05 UTC
as i understand and checked on ubuntu 9 i have one at work). it's using by default ~/.dmrc with syntax :
cat ~/.dmrc 

[Desktop]
Language=en_US.utf8
Layout=us
Langlist=en_US:en
LCMess=en_US.UTF-8
Session=xubuntu


as i'll get home i'll try to make similar file with configs and re-check. i would post results. if it work, maybe we should add to ebuild the autogeneration of that file from /etc/env.d/02locale. But still it wouldn't be right but just workaround as it's not gentoo's way of locales config. So we need to wait till developers change it.
Comment 10 Denis I. Polukarov 2011-11-01 06:50:53 UTC
This problem on "~arm" with x11-misc/lightdm-1.0.5[gtk introspection branding -qt4].
xxx@ac100 ~ $ eselect locale list
Available targets for the LANG variable:
  [1]   C
  [2]   en_US.utf8
  [3]   POSIX
  [4]   ru_RU.utf8 *
  [ ]   (free form)
xxx@ac100 ~ $
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2011-11-05 01:44:15 UTC
This should be fixed in 1.0.6-r1
Comment 12 Fabian Köster 2011-11-06 22:18:54 UTC
(In reply to comment #11)
> This should be fixed in 1.0.6-r1

Can confirm it works for me with version 1.0.6-r2 and ~/.dmrc given by Misha. Thanks!