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