Bug 862978

Summary: Error: unsupported locale setting
Product: [Fedora] Fedora Reporter: Steve Tyler <stephent98>
Component: system-config-dateAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: bcl, mgracik, msivak, nphilipp, pnemade, stephent98
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8af9834cddc0e55ad9a03c10d5baf4c6ccf8b3285277f6bc9953b50e17e1bf1a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 19:46:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 858591    
Bug Blocks:    
Attachments:
Description Flags
File: environ
none
File: other involved packages
none
File: type
none
File: release
none
File: product
none
File: hashmarkername
none
File: firstboot-tb
none
File: version
none
/var/log/messages none

Description Steve Tyler 2012-10-04 05:46:59 UTC
Description of problem:
This appears to be related to invalid locales.

Version-Release number of selected component:
firstboot-18.3-1.fc18.x86_64

Additional info:
libreport version: 2.0.14
cmdline:        /usr/bin/python  /usr/sbin/firstboot
kernel:         3.6.0-0.rc6.git0.2.fc18.x86_64

description:
:Traceback from firstboot:
:firstboot 18.3 exception report
:Traceback (most recent call last):
:  File "/usr/share/system-config-date/scdMainWindow.py", line 203, in custom_handler
:    return module.custom_widgets[function_name] (glade)
:  File "/usr/share/system-config-date/timezone_gui.py", line 40, in timezone_widget_create
:    widget = TimezoneMap(zonetab.ZoneTab (), default, map=mappath, tzActionLabel = tzActionLabel)
:  File "/usr/lib/python2.7/site-packages/scdate/core/zonetab.py", line 153, in __init__
:    self.readZoneTab (fn)
:  File "/usr/lib/python2.7/site-packages/scdate/core/zonetab.py", line 218, in readZoneTab
:    entry = ZoneTabEntry (code, lat, long, tz, comments)
:  File "/usr/lib/python2.7/site-packages/scdate/core/zonetab.py", line 59, in __init__
:    self.tz = tz.replace ('_', ' ')
:  File "/usr/lib/python2.7/site-packages/scdate/core/zonetab.py", line 127, in _set_tz
:    self.__translate_tz()
:  File "/usr/lib/python2.7/site-packages/scdate/core/zonetab.py", line 85, in __translate_tz
:    locale.setlocale(locale.LC_ALL, "")
:  File "/usr/lib64/python2.7/locale.py", line 539, in setlocale
:    return _setlocale(category, locale)
:Error: unsupported locale setting

Comment 1 Steve Tyler 2012-10-04 05:47:02 UTC
Created attachment 621337 [details]
File: environ

Comment 2 Steve Tyler 2012-10-04 05:47:03 UTC
Created attachment 621338 [details]
File: other involved packages

Comment 3 Steve Tyler 2012-10-04 05:47:04 UTC
Created attachment 621339 [details]
File: type

Comment 4 Steve Tyler 2012-10-04 05:47:06 UTC
Created attachment 621340 [details]
File: release

Comment 5 Steve Tyler 2012-10-04 05:47:08 UTC
Created attachment 621341 [details]
File: product

Comment 6 Steve Tyler 2012-10-04 05:47:10 UTC
Created attachment 621342 [details]
File: hashmarkername

Comment 7 Steve Tyler 2012-10-04 05:47:11 UTC
Created attachment 621343 [details]
File: firstboot-tb

Comment 8 Steve Tyler 2012-10-04 05:47:13 UTC
Created attachment 621344 [details]
File: version

Comment 9 Steve Tyler 2012-10-04 05:55:58 UTC
Created attachment 621346 [details]
/var/log/messages

Comment 10 Steve Tyler 2012-10-06 03:09:31 UTC
(In reply to comment #0)
> Description of problem:
> This appears to be related to invalid locales.

The attached environ file has:
LANG=en.UTF-8

"en.UTF-8" is an invalid locale:
Bug 858591 - anaconda setting invalid system locale xx.UTF-8 not xx_YY.UTF-8

Comment 11 Martin Sivák 2012-10-17 12:12:39 UTC
The traceback is all system-config-date..

Comment 12 Parag Nemade 2012-12-07 14:43:36 UTC
I think this is fixed now.

Comment 13 Steve Tyler 2012-12-07 19:46:25 UTC
This was fixed in system-config-date-1_9_68[1], although the changelog does not say so.

Verified with system-config-date-1_10_4 using:
$ LANG=en.UTF-8 system-config-date

Thanks.

Closing with resolution ERRATA.

[1] In this commit:
catch locale.setlocale() exceptions and warn instead
http://git.fedorahosted.org/cgit/system-config-date.git/commit/?id=368fdbe35da91d2cdd693684acd92915f7bc6c59