Bug 91111

Summary: Incorrect display of AM/PM in some locales
Product: [Retired] Red Hat Linux Reporter: Alan Cox <alan>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.3.2-42 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-08 22:33:14 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:

Description Alan Cox 2003-05-18 21:56:11 UTC
Description of problem:

date +"%r" fails to print AM/PM in cy_GB.UTF-8 or some other locales

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

Red Hat 9. Red Hat 7.2 shows the same with en_GB, but 9 seems to have fixed that

How reproducible:

100%

Steps to Reproduce:
1. localdef -i cy_GB -f UTF-8 cy_GB.UTF-8
2. date +%r
    
Actual results:

No AM/PM

Expected results:

AM/PM

Additional info:

(AM/PM is correct for cy_GB)

Comment 1 Alan Cox 2003-05-18 21:56:33 UTC
http://sources.redhat.com/ml/bug-glibc/2002-06/msg00502.html


seems similar


Comment 2 Alan Cox 2003-05-18 22:01:28 UTC
Adding

am_pm       "<U0041><U004D>";"<U0050><U004D>"
t_fmt_ampm     
"<U0025><U006C><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0050><U0020><U0025><U005A>"
date_fmt        "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
<U0025><U005A><U0020><U0025><U0059>"

seems to fix it btw


Comment 3 Jakub Jelinek 2003-05-21 10:21:26 UTC
Edited my copy, should appear in glibc-2.3.2-42 and later.
Thanks.

Comment 4 Jakub Jelinek 2003-07-08 22:33:14 UTC
rpm -q glibc; LC_ALL=cy_GB.UTF-8 date +%r
glibc-2.3.2-56
06:32:40 PM