← Back to team overview

desktop-packages team mailing list archive

[Bug 864618] Re: sets $LANG to a language name

 

On 2011-10-05 08:39, Martin Pitt wrote:
> "en_GB" *is* a correct value, but not for $LANG, but for $LANGUAGE;
> What you select in control-center is a language, _not_ a locale.

Precisely.

I like http://pad.ubuntu.com/locale-handling, and will add some stuff to
it later on. Language Support Help (ghelp:language-selector) includes a
similar but less technical description of the concept.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/864618

Title:
  sets $LANG to a language name

Status in “gnome-control-center” package in Ubuntu:
  In Progress
Status in “lightdm” package in Ubuntu:
  Fix Released
Status in “gnome-control-center” source package in Oneiric:
  In Progress
Status in “lightdm” source package in Oneiric:
  Fix Released

Bug description:
  As of the last oneiric upgrade I performed (I'm not certain, but I
  think this was from lightdm 0.9.7-0ubuntu2 to 1.0.0-0ubuntu3), my
  locale has been broken; it is now set to en_GB rather than to
  en_GB.UTF-8.  I've attached lightdm.log, of which the salient lines
  seem to be:

    [+8.46s] DEBUG: Launching process 2603: /usr/sbin/lightdm-session 'gnome-session --session=ubuntu-2d'
    [+8.46s] DEBUG: pam_setcred(0x930a6c8, PAM_ESTABLISH_CRED) -> 0 (Success)
    [+8.46s] DEBUG: PAM returns environment 'GNOME_KEYRING_CONTROL=/tmp/keyring-JAW17p GNOME_KEYRING_PID=2592 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8:en'
    [+8.46s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
    [+8.47s] DEBUG: Using locale en_GB for language en_GB

  Please fix this urgently; it's bad to have regressed to a legacy
  encoding.  We should be using UTF-8 for everything unless explicitly
  configured otherwise, and we definitely shouldn't be ignoring explicit
  configuration of UTF-8.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/864618/+subscriptions


References