alacarte crashed with ValueError in _parse_localename()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python2.6 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: python2.6
Bug #223281 is back (if it ever went away: my Lucid server installation has the same problem — I am not sure if I should re-open that bug). It fails for locale sr_RS (default Serbian locale on Ubuntu). Other applications are affected as well (eg. gtg and update-manager, though update-manager keeps working even if it prints out a traceback on stderr).
For sr_RS problem seems to be that an old X.org locale.alias is used to initialize the alias table in locale.py (i.e. there's no mention of sr_RS in there).
Simplest way to reproduce this is to do:
$ LANG=sr_RS python
>>> import locale
>>> locale.
Bug #539457 seems to be another duplicate (closed after not responded to needs-info, though requested information is in the traceback: en_NG is the locale that it fails with.
ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: alacarte 0.13.2-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
CheckboxSubmission: f6bb8a2d0bca1d4
CheckboxSystem: b633b4f40868d49
Date: Wed Sep 22 16:31:34 2010
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/alacarte
InterpreterPath: /usr/bin/python2.6
PackageArchitec
ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
ProcEnviron:
PATH=(custom, user)
LANG=sr_RS
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: alacarte
Title: alacarte crashed with ValueError in _parse_localename()
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
tags: | removed: need-duplicate-check |
Changed in python2.6 (Ubuntu): | |
importance: | Undecided → Medium |
Workaround for any locale exhibiting this problem: append ".UTF-8" to the LANG variable before running a program.
I.e. to run "alacarte", do "LANG=$LANG.UTF-8 alacarte".
The list of affected locales I could find from other bug reports so far: sr_RS, en_NG, mn_IN