Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1322292

Summary: Incorrect date and time locales
Product: Red Hat Enterprise Linux 6 Reporter: Ondrej Moriš <omoris>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8CC: ashankar, codonell, fweimer, mnewsome, pfrankli
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1322585 (view as bug list) Environment:
Last Closed: 2017-11-08 09:30:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test Case
none
Broken Locales none

Description Ondrej Moriš 2016-03-30 08:37:25 UTC
Description of problem:

While testing ausearch time parsing we recently discovered that some locales have broken date and time. In particular, a time given by strftime() cannot be parsed correctly by strptime() afterwards. 

In RHEL-6.8 Snapshot 2.0 there are 50 such locales, the list of them is attached to this BZ. 

A test case for glibc prepared by Steve Grubb is attached to this BZ as well.

Version-Release number of selected component (if applicable):

glibc-2.12-1.192.el6

How reproducible:

100%

Steps to Reproduce:

1. Compile the test case into test binary.
2. execute it for each locale (for L in $(locale -a); do ./test $L; done)

Actual results:

50 broken locales, from ar_AE to my_MM.utf8.

Expected results:

No broken locales.

Additional info:

I would like to thank Steve to pointing to the issue and sharing the test case.

Comment 1 Ondrej Moriš 2016-03-30 08:38:37 UTC
Created attachment 1141620 [details]
Test Case

Comment 2 Ondrej Moriš 2016-03-30 08:39:03 UTC
Created attachment 1141621 [details]
Broken Locales

Comment 3 Carlos O'Donell 2016-03-30 19:45:58 UTC
Upstream 2.22 has less broken locales:
Error converting time string to struct in gd_GB locale
Error converting time string to struct in gd_GB.iso885915 locale
Error converting time string to struct in gd_GB.utf8 locale
Error converting time string to struct in lzh_TW locale
Error converting time string to struct in lzh_TW.utf8 locale
Error converting time string to struct in my_MM locale
Error converting time string to struct in my_MM.utf8 locale

Same with upstream master (using a chroot script):
FAIL: Error converting time string to struct in gd_GB locale
FAIL: Error converting time string to struct in gd_GB.iso885915 locale
FAIL: Error converting time string to struct in gd_GB.utf8 locale
FAIL: Error converting time string to struct in lzh_TW locale
FAIL: Error converting time string to struct in lzh_TW.utf8 locale
FAIL: Error converting time string to struct in my_MM locale
FAIL: Error converting time string to struct in my_MM.utf8 locale

This is going to have to go upstream first.

Depending on the change the backport may not be suitable for RHEL6, but might be for RHEL7 (I'll clone to there next).

I filed an upstream bug.

https://sourceware.org/bugzilla/show_bug.cgi?id=19890

Comment 4 Carlos O'Donell 2016-03-30 19:50:32 UTC
RHEL 7 shows:

FAIL: Error converting time string to struct in ar_AE locale
FAIL: Error converting time string to struct in ar_AE.iso88596 locale
FAIL: Error converting time string to struct in ar_AE.utf8 locale
FAIL: Error converting time string to struct in ar_BH locale
FAIL: Error converting time string to struct in ar_BH.iso88596 locale
FAIL: Error converting time string to struct in ar_BH.utf8 locale
FAIL: Error converting time string to struct in ar_DZ locale
FAIL: Error converting time string to struct in ar_DZ.iso88596 locale
FAIL: Error converting time string to struct in ar_DZ.utf8 locale
FAIL: Error converting time string to struct in ar_EG locale
FAIL: Error converting time string to struct in ar_EG.iso88596 locale
FAIL: Error converting time string to struct in ar_EG.utf8 locale
FAIL: Error converting time string to struct in ar_IQ locale
FAIL: Error converting time string to struct in ar_IQ.iso88596 locale
FAIL: Error converting time string to struct in ar_IQ.utf8 locale
FAIL: Error converting time string to struct in ar_JO locale
FAIL: Error converting time string to struct in ar_JO.iso88596 locale
FAIL: Error converting time string to struct in ar_JO.utf8 locale
FAIL: Error converting time string to struct in ar_KW locale
FAIL: Error converting time string to struct in ar_KW.iso88596 locale
FAIL: Error converting time string to struct in ar_KW.utf8 locale
FAIL: Error converting time string to struct in ar_LB locale
FAIL: Error converting time string to struct in ar_LB.iso88596 locale
FAIL: Error converting time string to struct in ar_LB.utf8 locale
FAIL: Error converting time string to struct in ar_LY locale
FAIL: Error converting time string to struct in ar_LY.iso88596 locale
FAIL: Error converting time string to struct in ar_LY.utf8 locale
FAIL: Error converting time string to struct in ar_MA locale
FAIL: Error converting time string to struct in ar_MA.iso88596 locale
FAIL: Error converting time string to struct in ar_MA.utf8 locale
FAIL: Error converting time string to struct in ar_OM locale
FAIL: Error converting time string to struct in ar_OM.iso88596 locale
FAIL: Error converting time string to struct in ar_OM.utf8 locale
FAIL: Error converting time string to struct in ar_QA locale
FAIL: Error converting time string to struct in ar_QA.iso88596 locale
FAIL: Error converting time string to struct in ar_QA.utf8 locale
FAIL: Error converting time string to struct in ar_SD locale
FAIL: Error converting time string to struct in ar_SD.iso88596 locale
FAIL: Error converting time string to struct in ar_SD.utf8 locale
FAIL: Error converting time string to struct in ar_SY locale
FAIL: Error converting time string to struct in ar_SY.iso88596 locale
FAIL: Error converting time string to struct in ar_SY.utf8 locale
FAIL: Error converting time string to struct in ar_TN locale
FAIL: Error converting time string to struct in ar_TN.iso88596 locale
FAIL: Error converting time string to struct in ar_TN.utf8 locale
FAIL: Error converting time string to struct in ar_YE locale
FAIL: Error converting time string to struct in ar_YE.iso88596 locale
FAIL: Error converting time string to struct in ar_YE.utf8 locale
FAIL: Error converting time string to struct in my_MM locale
FAIL: Error converting time string to struct in my_MM.utf8 locale
FAIL: Error setting locale no_NO.ISO-8859-1

Which points at a core ar_* locale issue, and a core my_* locale issue.

Comment 7 Florian Weimer 2017-11-08 09:30:28 UTC
Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017.  During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

This issue does not qualify, but we will consider incorporating an upstream change into Red Hat Enterprise Linux 7 if it becomes available.

Comment 8 Red Hat Bugzilla Rules Engine 2017-11-08 09:30:35 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.