Comment 2 for bug 463654

Revision history for this message
Zarko Mihajlovic (developer-beotel) wrote : Re: software center wont start with my locale variables set to sr_RS

This bug affects two of mine computers, desktop and laptop, both set with serbian locale sr_RS:

zarko@zarko-desktop:~$ software-center
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

Moreover, even the Alacarte wont start with similar error report:

zarko@zarko-desktop:~$ alacarte
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 36, in <module>
    main()
  File "/usr/bin/alacarte", line 32, in main
    app = MainWindow(datadir, version, sys.argv)
  File "/usr/lib/pymodules/python2.6/Alacarte/MainWindow.py", line 48, in __init__
    self.editor = MenuEditor()
  File "/usr/lib/pymodules/python2.6/Alacarte/MenuEditor.py", line 35, in __init__
    self.locale = locale.getdefaultlocale()[0]
  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