← Back to team overview

desktop-packages team mailing list archive

[Bug 1535620] [NEW] software-center crashes on locale without underscore

 

Public bug reported:

I am running Ubuntu 5.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") does not
contain an underscore.

A second launch usually succeeds; I suppose there is another way of
getting the country information (_get_region_geoclue?). I have no idea
what the country information is used for, so I would rather not hack it.

In my opinion programs should not depend on an underscore in the locale.

** Affects: software-center (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: ubuntu => software-center (Ubuntu)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/1535620

Title:
  software-center crashes on locale without underscore

Status in software-center package in Ubuntu:
  New

Bug description:
  I am running Ubuntu 5.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") does not contain an underscore.

  A second launch usually succeeds; I suppose there is another way of
  getting the country information (_get_region_geoclue?). I have no idea
  what the country information is used for, so I would rather not hack
  it.

  In my opinion programs should not depend on an underscore in the
  locale.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1535620/+subscriptions


Follow ups