(some) python based apps wont start with sr_RS locales set

Bug #476693 reported by Slobodan Simić
10
This bug affects 2 people
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::visited-link-color' of type `GdkColor' from rc file value "((GString*) 0x3137960)" of type `GString'
Traceback (most recent call last):
  File "/usr/bin/software-center", line 80, in <module>
    app = SoftwareCenterApp(datadir, xapian_base_path)
  File "/usr/share/software-center/softwarecenter/app.py", line 140, in __init__
    self.icons, datadir)
  File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 58, in __init__
    SoftwarePane.__init__(self, cache, db, icons, datadir)
  File "/usr/share/software-center/softwarecenter/view/softwarepane.py", line 92, in __init__
    self.datadir)
  File "/usr/share/software-center/softwarecenter/view/appdetailsview.py", line 102, in __init__
    self.aptd_client = client.AptClient()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/client.py", line 382, in __init__
    self._locale = "%s.%s" % locale.getdefaultlocale()
  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: 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/wicd/wicd-client.py", line 60, in <module>
    from wicd import gui
  File "/usr/share/wicd/wicd/gui.py", line 38, in <module>
    from wicd import prefs
  File "/usr/share/wicd/wicd/prefs.py", line 42, in <module>
    from translations import language
  File "/usr/share/wicd/wicd/translations.py", line 59, in <module>
    _ = get_gettext()
  File "/usr/share/wicd/wicd/translations.py", line 50, in get_gettext
    if (lc):
UnboundLocalError: local variable 'lc' referenced before assignment

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.