Bug 5777 - AM/PM format for es_CR
Summary: AM/PM format for es_CR
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 07:10 UTC by Aurelien Jarno
Modified: 2014-07-02 07:22 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Jarno 2008-02-20 07:10:20 UTC
The Costa Rica is using the AM/PM format for date time. See the links below:
http://www.casapres.go.cr/
http://www.una.ac.cr/
http://www.ucr.ac.cr/

The patch below defines the AM/PM format for the es_CR locale.

--- localedata/locales/es_CR.orig
+++ localedata/locales/es_CR
@@ -108,8 +108,8 @@ mon     "<U0065><U006E><U0065><U0072><U0
 
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
 d_fmt   "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
 t_fmt   "<U0025><U0054>"
-am_pm   "";""
-t_fmt_ampm ""
+am_pm   "<U0041><U002E><U004D><U002E>";"<U0050><U002E><U004D><U002E>"
+t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0070>"
 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>"
Comment 1 Ulrich Drepper 2008-03-04 15:31:33 UTC
It seems to be either AM/PM or a.m./p.m.

But nowhere it is A.M./P.M.
Comment 2 Aurelien Jarno 2008-03-05 10:02:36 UTC
> It seems to be either AM/PM or a.m./p.m.
> 
> But nowhere it is A.M./P.M.

Oops you are right this is a mistake in my patch. The correct format is 
a.m./p.m. as defined by the Royal Spanish Academy:
http://buscon.rae.es/dpdI/SrvltGUIBusDPD?origen=RAE&lema=ante%20mer%EDdiem
http://buscon.rae.es/dpdI/SrvltGUIBusDPD?origen=RAE&lema=post%20mer%EDdiem

The patch below should be correct now.

--- localedata/locales/es_CR     30 Jul 2006 22:19:44 -0000
+++ localedata/locales/es_CR  20 Feb 2008 07:00:28 -0000
@@ -108,8 +108,8 @@ mon     "<U0065><U006E><U0065><U0072><U0
 
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
 d_fmt   "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
 t_fmt   "<U0025><U0054>"
-am_pm   "";""
-t_fmt_ampm ""
+am_pm   "<U0061><U002E><U006D><U002E>";"<U0070><U002E><U006D><U002E>"
+t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0070>"
 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>"
Comment 3 Ulrich Drepper 2008-03-08 01:09:57 UTC
I've checked in the changes.