(some) python based apps wont start with sr_RS locales set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python
Recently I report a bug with software-center wich have problem starting when sr_RS locale are used. Today I installed wicd package and had a very similar error regarding sr_RS locale when starting wicd-client.
So since both apps are python based I think that python is the one responsible for both apps unsuccessful start when sr_RS locale are set. When I change LANG variable before starting these two apps everything works fine.
Here is console output for software-center
*******
slobodan@GX610:~$ software-center
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkWidget:
Traceback (most recent call last):
File "/usr/bin/
app = SoftwareCenterA
File "/usr/share/
self.icons, datadir)
File "/usr/share/
SoftwarePan
File "/usr/share/
self.datadir)
File "/usr/share/
self.
File "/usr/lib/
self._locale = "%s.%s" % locale.
File "/usr/lib/
return _parse_
File "/usr/lib/
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: sr_RS
*******
and here is the wicd-client output
*******
slobodan@GX610:~$ wicd-client
unknown locale: sr_RS
Default locale unavailable, falling back to en_US
Traceback (most recent call last):
File "/usr/share/
from wicd import gui
File "/usr/share/
from wicd import prefs
File "/usr/share/
from translations import language
File "/usr/share/
_ = get_gettext()
File "/usr/share/
if (lc):
UnboundLocalError: local variable 'lc' referenced before assignment