I'm not able to reproduce this crash. I've tried with software-center and directly in python but I can't reproduce the datetime parse error.
The only error I get while playing with locales is the following but sc doesn't crashes:
Traceback (most recent call last):
File "/usr/share/software-center/update-software-center-agent", line 76, in <module>
if not update_from_software_center_agent(db, cache):
File "/usr/share/software-center/softwarecenter/db/update.py", line 376, in update_from_software_center_agent
sca.query_available()
File "/usr/share/software-center/softwarecenter/backend/restfulclient.py", line 383, in query_available
lang = get_default_language()
File "/usr/share/software-center/softwarecenter/utils.py", line 189, in get_default_language
locale = 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: ml_IN
So, either, this is fixed in some way in S-C 3.0.7 (the report was filed against a pre-release version of S-C 2.X.X) or there is some specific ways to setup the locale that are missing in the test case.
I'm not able to reproduce this crash. I've tried with software-center and directly in python but I can't reproduce the datetime parse error.
The only error I get while playing with locales is the following but sc doesn't crashes: software- center/ update- software- center- agent", line 76, in <module> from_software_ center_ agent(db, cache): software- center/ softwarecenter/ db/update. py", line 376, in update_ from_software_ center_ agent query_available () software- center/ softwarecenter/ backend/ restfulclient. py", line 383, in query_available language( ) software- center/ softwarecenter/ utils.py" , line 189, in get_default_ language getdefaultlocal e() python2. 6/locale. py", line 478, in getdefaultlocale localename( localename) python2. 6/locale. py", line 410, in _parse_localename
Traceback (most recent call last):
File "/usr/share/
if not update_
File "/usr/share/
sca.
File "/usr/share/
lang = get_default_
File "/usr/share/
locale = locale.
File "/usr/lib/
return _parse_
File "/usr/lib/
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: ml_IN
So, either, this is fixed in some way in S-C 3.0.7 (the report was filed against a pre-release version of S-C 2.X.X) or there is some specific ways to setup the locale that are missing in the test case.