Red Hat Bugzilla – Bug 864341
[abrt] gnome-clocks-0.1.3-2.fc18: locale.py:539:setlocale:Error: unsupported locale setting
Last modified: 2012-12-20 10:04:28 EST
Description of problem:
I just tried to run the app
Version-Release number of selected component:
libreport version: 2.0.15
cmdline: /usr/bin/python /usr/bin/gnome-clocks
:locale.py:539:setlocale:Error: unsupported locale setting
:Traceback (most recent call last):
: File "/usr/bin/gnome-clocks", line 50, in <module>
: locale.setlocale(locale.LC_ALL, '')
: File "/usr/lib/python2.7/locale.py", line 539, in setlocale
: return _setlocale(category, locale)
:Error: unsupported locale setting
:Local variables in innermost frame:
Created attachment 623959 [details]
Created attachment 623960 [details]
With the current code not much else is expected when you try an invalid/notinstalled locale.
I've filed this upstream for final resolution https://bugzilla.gnome.org/show_bug.cgi?id=685791
Upstream accepted a patch to avoid crashing. Since this is a isolated incident caused by some local locale miss-configuration I'll hold on with the fix entering fedora for the next version bump.
Kamil, if your F18 installation ended up in a situation where
>> import locale
>> locale.setlocale(locale.LC_ALL, '')
doesn't work, then this should be investigated separately.
Hello, I'm quite sure this is caused by current anaconda bug 858591. That will have to be fixed for sure, so this crash should not appear so often.
But still, the application shouldn't crash if the user has invalid locale, but fallback to C or en_US.utf8 locale instead.
(In reply to comment #6)
> But still, the application shouldn't crash if the user has invalid locale,
> but fallback to C or en_US.utf8 locale instead.
Yup. When I said version bump I meant gnome-clocks version bump, then filing an update for f18
Start 'Clocks' on a fresh install, got crash.
OS Release: Fedora release 18 (Spherical Cow)
gnome-clocks-0.1.4-1.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-clocks-0.1.4-1.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
gnome-clocks-0.1.4-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.