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