#9888 NORM 1.0-sof: measure activity doesn't work with en_SZ.UTF-8 locale
Zarro Boogs per Child
bugtracker at laptop.org
Tue Dec 15 02:58:43 EST 2009
#9888: measure activity doesn't work with en_SZ.UTF-8 locale
-------------------------------------------------+--------------------------
Reporter: wad | Owner: sayamindu
Type: defect | Status: reopened
Priority: normal | Milestone: 1.0-software-update
Component: acoustic-measure-activity | Version: 1.0 Software Build 802
Resolution: | Keywords: XO-1 measure
Next_action: reproduce | Verified: 0
Deployment_affected: | Blockedby:
Blocking: |
-------------------------------------------------+--------------------------
Changes (by sayamindu):
* status: closed => reopened
* resolution: invalid =>
Comment:
The locale for Swaziland is not yet defined in glibc. For such locales,
what we normally do in such cases is ship with the locale code, and then
work with the onsite team/someone from that region to get the relevant
locale data into glibc. We have used that approach for Kreyole, Dari and
Pashto so far (including a generic or a locale of a neighbor has possible
political implications, if not anything else).
It looks the python setlocale() code has problems - it is exiting if it
cannot find the locale. This is probably wrong behavior, as most distros
(other than Fedora) nowadays ship with a limited set of locales to save
space, so you cannot guarantee a locale that is requested for will
definitely exist in the system. GTK+ and friends just downgrade gracefully
to , which is a much more sensible option IMHO.
Distance definitely fails to start in en_SZ.UTF-8 locale (can be
reproduced by setting the locale in /home/olpc/.i18n)
Ben, it may make sense to include the line in
http://dev.laptop.org/git/projects/acoustic-measure-
activity/tree/activity.py#n83 inside a try:catch block (under normal
circumstances you will not need it at all)
--
Ticket URL: <http://dev.laptop.org/ticket/9888#comment:14>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list