invalid locale when loading a dmrc generated by gdm

Bug #843380 reported by Julien Lavergne
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxdm (Ubuntu)
Gunnar Hjalmarsson

Bug Description

Using Lubuntu Oneiric, with lxdm 0.4.1-0ubuntu1
When a .dmrc is generated by gdm, and "Default" is used for loading the language, lxdm loads it incorrectly.
This is the content of my .dmrc :

Layout=fr oss

It causes locale "fr" to be loaded, but it doesn't exist. The correct locale is fr_FR.UTF-8

Related branches

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Julien!

The .dmrc file you show has not been created by GDM in Oneiric, but probably in Natty. Actually I don't think that GDM 3 cares about ~/.dmrc at all, and I doubt that the behavior you mention has anything to do with that file.

You can easily test my theory by removing ~/.dmrc and see if it makes a difference.

I suspect another cause of the behavior; an adjustment in lxdm may be needed to make it compatible with how language-selector sets the language.

Changed in lxdm (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I was wrong yesterday, and you are right - lxdm does read "Language" from .dmrc if available.

I have prepared a branch that fixes both that issue and a couple of other locale/language related issues. It would be great if you could review the MP soon, because I think it's "critical" enough to go into Oneiric.

Changed in lxdm (Ubuntu):
status: New → In Progress
Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks a lot for tracking this issue ! :)
I'll have a look at the merge and test it asap.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Great! I uploaded it to my PPA:
The amd64 build is available now, while i386 is queued.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxdm - 0.4.1-0ubuntu3

lxdm (0.4.1-0ubuntu3) oneiric; urgency=low

  [ Gunnar Hjalmarsson ]
  * debian/patches/22_ubuntu_i18n_oneiric.patch:
    - Source /etc/profile and ~/.profile (LP: #857326).
    - If the session language is set from the greeter, override
      language related variables that are set by sourcing ~/.profile.
    - Possible "Language" value in ~/.dmrc not applicable in Oneiric,
      so do not use it (LP: #843380).
  * debian/lxdm.upstart:
    - Export LC_MESSAGES to ensure correct display language on the
      login screen (LP: #857326).
 -- Julien Lavergne <email address hidden> Fri, 30 Sep 2011 23:09:43 +0200

Changed in lxdm (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers