6c0556
Bug RHEL #2000374
6c0556
Bugs Upstream #24046, #25923
6c0556
6c0556
This patch provides 12-hour time for the English language UTF-8 locale as a
6c0556
new locale en_US@ampm.UTF-8.
6c0556
6c0556
Two upstream commits were applied to en_US to create the new file en_US@ampm:
6c0556
  Upstream commit: 7395f3a0efad9fc51bb54fa383ef6524702e0c49
6c0556
  Upstream commit: 8cde977077b3568310c743b21a905ca9ab286724
6c0556
6c0556
en_US remains unchanged and the new file en_US@ampm is now supported.
6c0556
6c0556
6c0556
diff -Nrup a/localedata/locales/en_US@ampm b/localedata/locales/en_US@ampm
6c0556
--- a/localedata/locales/en_US@ampm	1969-12-31 19:00:00.000000000 -0500
6c0556
+++ b/localedata/locales/en_US@ampm	2021-11-17 17:19:15.338720307 -0500
6c0556
@@ -0,0 +1,177 @@
6c0556
+comment_char %
6c0556
+escape_char /
6c0556
+
6c0556
+% This file is part of the GNU C Library and contains locale data.
6c0556
+% The Free Software Foundation does not claim any copyright interest
6c0556
+% in the locale data contained in this file.  The foregoing does not
6c0556
+% affect the license of the GNU C Library as a whole.  It does not
6c0556
+% exempt you from the conditions of the license if your use would
6c0556
+% otherwise be governed by that license.
6c0556
+
6c0556
+% Locale for English locale in the USA
6c0556
+% Contributed by Ulrich Drepper <drepper@redhat.com>, 2000
6c0556
+
6c0556
+LC_IDENTIFICATION
6c0556
+title      "English locale for the USA"
6c0556
+source     "Free Software Foundation, Inc."
6c0556
+address    "http:////www.gnu.org//software//libc//"
6c0556
+contact    ""
6c0556
+email      "bug-glibc-locales@gnu.org"
6c0556
+tel        ""
6c0556
+fax        ""
6c0556
+language   "American English"
6c0556
+territory  "United States"
6c0556
+revision   "1.0"
6c0556
+date       "2000-06-24"
6c0556
+
6c0556
+category "i18n:2012";LC_IDENTIFICATION
6c0556
+category "i18n:2012";LC_CTYPE
6c0556
+category "i18n:2012";LC_COLLATE
6c0556
+category "i18n:2012";LC_TIME
6c0556
+category "i18n:2012";LC_NUMERIC
6c0556
+category "i18n:2012";LC_MONETARY
6c0556
+category "i18n:2012";LC_MESSAGES
6c0556
+category "i18n:2012";LC_PAPER
6c0556
+category "i18n:2012";LC_NAME
6c0556
+category "i18n:2012";LC_ADDRESS
6c0556
+category "i18n:2012";LC_TELEPHONE
6c0556
+category "i18n:2012";LC_MEASUREMENT
6c0556
+END LC_IDENTIFICATION
6c0556
+
6c0556
+LC_CTYPE
6c0556
+copy "en_GB"
6c0556
+END LC_CTYPE
6c0556
+
6c0556
+LC_COLLATE
6c0556
+
6c0556
+% Copy the template from ISO/IEC 14651
6c0556
+copy "iso14651_t1"
6c0556
+
6c0556
+END LC_COLLATE
6c0556
+
6c0556
+LC_MONETARY
6c0556
+int_curr_symbol     "USD "
6c0556
+currency_symbol     "$"
6c0556
+mon_decimal_point   "."
6c0556
+mon_thousands_sep   ","
6c0556
+mon_grouping        3;3
6c0556
+positive_sign       ""
6c0556
+negative_sign       "-"
6c0556
+int_frac_digits     2
6c0556
+frac_digits         2
6c0556
+p_cs_precedes       1
6c0556
+int_p_sep_by_space  1
6c0556
+p_sep_by_space      0
6c0556
+n_cs_precedes       1
6c0556
+int_n_sep_by_space  1
6c0556
+n_sep_by_space      0
6c0556
+p_sign_posn         1
6c0556
+n_sign_posn         1
6c0556
+%
6c0556
+END LC_MONETARY
6c0556
+
6c0556
+LC_NUMERIC
6c0556
+decimal_point   "."
6c0556
+thousands_sep   ","
6c0556
+grouping        3;3
6c0556
+END LC_NUMERIC
6c0556
+
6c0556
+LC_TIME
6c0556
+abday	"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
6c0556
+day	"Sunday";/
6c0556
+	"Monday";/
6c0556
+	"Tuesday";/
6c0556
+	"Wednesday";/
6c0556
+	"Thursday";/
6c0556
+	"Friday";/
6c0556
+	"Saturday"
6c0556
+
6c0556
+week 7;19971130;1
6c0556
+abmon	"Jan";"Feb";/
6c0556
+	"Mar";"Apr";/
6c0556
+	"May";"Jun";/
6c0556
+	"Jul";"Aug";/
6c0556
+	"Sep";"Oct";/
6c0556
+	"Nov";"Dec"
6c0556
+mon	"January";/
6c0556
+	"February";/
6c0556
+	"March";/
6c0556
+	"April";/
6c0556
+	"May";/
6c0556
+	"June";/
6c0556
+	"July";/
6c0556
+	"August";/
6c0556
+	"September";/
6c0556
+	"October";/
6c0556
+	"November";/
6c0556
+	"December"
6c0556
+% Appropriate date and time representation (%c)
6c0556
+d_t_fmt "%a %d %b %Y %r %Z"
6c0556
+%
6c0556
+% Appropriate date representation (%x)
6c0556
+d_fmt   "%m//%d//%Y"
6c0556
+%
6c0556
+% Appropriate time representation (%X)
6c0556
+t_fmt   "%r"
6c0556
+%
6c0556
+% Appropriate AM/PM time representation (%r)
6c0556
+t_fmt_ampm "%I:%M:%S %p"
6c0556
+%
6c0556
+% Appropriate date and time representation for date(1).  This is
6c0556
+% different from d_t_fmt for historical reasons and has been different
6c0556
+% since 2000 when date_fmt was added as a GNU extension.  At the end
6c0556
+% of 2018 it was adjusted to use 12H time (bug 24046) instead of 24H.
6c0556
+date_fmt "%a %b %e %r %Z %Y"
6c0556
+%
6c0556
+% Strings for AM/PM
6c0556
+%
6c0556
+am_pm	"AM";"PM"
6c0556
+END LC_TIME
6c0556
+
6c0556
+LC_MESSAGES
6c0556
+yesexpr "^[+1yY]"
6c0556
+noexpr  "^[-0nN]"
6c0556
+yesstr  "yes"
6c0556
+nostr   "no"
6c0556
+END LC_MESSAGES
6c0556
+
6c0556
+LC_PAPER
6c0556
+height   279
6c0556
+width    216
6c0556
+END LC_PAPER
6c0556
+
6c0556
+LC_NAME
6c0556
+name_fmt    "%d%t%g%t%m%t%f"
6c0556
+name_miss   "Miss."
6c0556
+name_mr     "Mr."
6c0556
+name_mrs    "Mrs."
6c0556
+name_ms     "Ms."
6c0556
+END LC_NAME
6c0556
+
6c0556
+
6c0556
+LC_ADDRESS
6c0556
+postal_fmt    "%a%N%f%N%d%N%b%N%h %s %e %r%N%T, %S %z%N%c%N"
6c0556
+country_name "United States"
6c0556
+country_post  "USA"
6c0556
+country_ab2   "US"
6c0556
+country_ab3   "USA"
6c0556
+country_num   840
6c0556
+country_car   "USA"
6c0556
+country_isbn  0
6c0556
+lang_name     "English"
6c0556
+lang_ab      "en"
6c0556
+lang_term    "eng"
6c0556
+lang_lib    "eng"
6c0556
+END LC_ADDRESS
6c0556
+
6c0556
+LC_TELEPHONE
6c0556
+tel_int_fmt    "+%c (%a) %l"
6c0556
+tel_dom_fmt    "(%a) %l"
6c0556
+int_select     "11"
6c0556
+int_prefix     "1"
6c0556
+END LC_TELEPHONE
6c0556
+
6c0556
+LC_MEASUREMENT
6c0556
+% US customary units.
6c0556
+measurement 2
6c0556
+END LC_MEASUREMENT
6c0556
diff -Nrup a/localedata/SUPPORTED b/localedata/SUPPORTED
6c0556
--- a/localedata/SUPPORTED	2021-11-17 17:14:33.831631483 -0500
6c0556
+++ b/localedata/SUPPORTED	2021-11-17 17:21:16.418188595 -0500
6c0556
@@ -159,6 +159,7 @@ en_SG/ISO-8859-1 \
6c0556
 en_US.UTF-8/UTF-8 \
6c0556
 en_US/ISO-8859-1 \
6c0556
 en_US.ISO-8859-15/ISO-8859-15 \
6c0556
+en_US@ampm.UTF-8/UTF-8 \
6c0556
 en_ZA.UTF-8/UTF-8 \
6c0556
 en_ZA/ISO-8859-1 \
6c0556
 en_ZM/UTF-8 \