On 2012-02-13 06:32, Martin Pitt wrote on bug 931060:
> Gunnar Hjalmarsson [2012-02-13  3:01 -0000]:
>> It's the user_locale_validate() function in
>> accountsservice/src/user.c that caused this crash. Is there a simple
>> way to make setlocale() instantly aware of newly generated locales?
>> If not I guess that playing with 'locale -a' in
>> user_locale_validate() would be safer than calling setlocale().
> 
> I don't know off-hand myself. My guess is that libc reads them at
> program startup, so somehow you'd need to convince it to re-read it.
> 
> But that locale -a workaround wouldn't help language-selector, as you
> still couldn't actually set the locale for language-selector itself or
> the session, you need to relogin in any case.

Actually I think it would help. The moment that currently fails is
accountsservice's writing to its keyfile and ~/.pam_environment. So now,
when you just have installed a new language, and wants to use a locale
of that language for regional formats, you first need to log out/login
to be able to accomplish the writing, and then log out/login again to
make the new setting part of the actual environment.

** Changed in: language-selector (Ubuntu)
       Status: Triaged => In Progress

** Changed in: language-selector (Ubuntu)
     Assignee: (unassigned) => Gunnar Hjalmarsson (gunnarhj)

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

Title:
  gnome-language-selector crashed with DBusException in call_blocking():
  org.freedesktop.Accounts.Error.Failed: 'bg_BG.UTF-8' is not a valid
  locale name

Status in “language-selector” package in Ubuntu:
  In Progress

Bug description:
  In the Language Support->Reginal Formats->Display numbers...for:-> I
  changed the language to Bulgarian.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: language-selector-gnome 0.69
  ProcVersionSignature: Ubuntu 3.2.0-15.24-generic 3.2.5
  Uname: Linux 3.2.0-15-generic x86_64
  ApportVersion: 1.91-0ubuntu1
  Architecture: amd64
  Date: Sun Feb 12 00:36:53 2012
  ExecutablePath: /usr/bin/gnome-language-selector
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 
(20120201.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/gnome-language-selector
  ProcEnviron:
   SHELL=/bin/bash
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  PythonArgs: ['/usr/bin/gnome-language-selector']
  SourcePackage: language-selector
  Title: gnome-language-selector crashed with DBusException in call_blocking(): 
org.freedesktop.Accounts.Error.Failed: 'bg_BG.UTF-8' is not a valid locale name
  UpgradeStatus: Upgraded to precise on 2012-02-11 (0 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/930785/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to