Need to set $LANG from .dmrc for backwards compatibility
Bug #868149 reported by
Martin Pitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lightdm (Ubuntu) |
Fix Released
|
High
|
Robert Ancell | ||
Oneiric |
Fix Released
|
High
|
Robert Ancell |
Bug Description
This is fallout from bug 864618: In that bug we disabled the set_language() call as it invalidly sets $LANG to the "Language" property of accountsservice, which cannot work because $LANG is a locale and "Language" is only a language name.
However, set_language() also sets the $LANG variable from ~/.dmrc, which we need for backwards compatibility and derivatives.
So what should happen is that all the code which does the `locale -a` guesswork needs to be dropped, and only these parts remain which evaluate ~/.dmrc.
Please see http://
Changed in lightdm (Ubuntu Oneiric): | |
assignee: | nobody → Robert Ancell (robert-ancell) |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → oneiric-updates |
description: | updated |
To post a comment you must log in.
2011-10-05 09:53, Martin Pitt skrev:
> ... we disabled the set_language() call as it invalidly sets $LANG to
> the "Language" property of accountsservice, which cannot work because
> $LANG is a locale and "Language" is only a language name.
We currently derive locales from language denotations, such as 'es_ES' or 'de', all the time. The main problem is that LANG represents regional formats in Oneiric, not language.