software-center crashes on locale without underscore
Bug #1535620 reported by
Renardo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am running Ubuntu 15.10. Some time ago software-center (13.10-0ubuntu12) started to crash on the first launch during a session. It turned out that software-center tries to determine a country code from the locale data (region.py, line 114, in _get_region_dumb) by splitting the locale at the underscore. My locale ("eo.utf8") does not contain an underscore.
A second launch usually succeeds; I suppose there is another way of getting the country information (_get_region_
In my opinion programs should not depend on an underscore in the locale.
affects: | ubuntu → software-center (Ubuntu) |
description: | updated |
description: | updated |
To post a comment you must log in.
As m-hampl (in question 281095) pointed out the problem affects the "C" locale, too, as it does not contain an underscore either.
It might be useful to describe why software-center needs the country, so as to decide whether it is legal to provide a dummy country (to circumvent the problem).