[Bug 223281] Re: locale._parse_localename fails when localename does not contain encoding information (was: alacarte crashed with ValueError in _parse_localename() )

Martin Pitt martin.pitt at ubuntu.com
Mon Dec 7 12:47:09 GMT 2009


Jonathan, I locally built your lucid python update, and the bug still
happens:

$ LANG=en_AG python -c "import locale ; print locale.getdefaultlocale()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: en_AG

Seems it doesn't work?

(And yes, I did create the local before: sudo locale-gen en_AG)

** Changed in: python2.6 (Ubuntu)
       Status: Fix Committed => Incomplete

-- 
locale._parse_localename fails when localename does not contain encoding information (was: alacarte crashed with ValueError in _parse_localename() )
https://bugs.launchpad.net/bugs/223281
You received this bug notification because you are a member of Ubuntu
Sponsors for main, which is a direct subscriber.



More information about the Ubuntu-main-sponsors mailing list