]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Support old and new T_FMT for en_HK locale [PR103687]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 14 Dec 2021 22:14:48 +0000 (22:14 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 14 Dec 2021 23:37:14 +0000 (23:37 +0000)
commit9a4b4514bde2fe2f287f6549ef51326fb8918008
tree8a2ce1d493c6b5055caf60da02467faf5c3cd77a
parent85a438fc78dd12249ca854a3e5c577fefeb1a5cd
libstdc++: Support old and new T_FMT for en_HK locale [PR103687]

This checks whether the locale data for en_HK includes %p and adjusts
the string being tested accordingly. To account for Jakub's fix to make
%I parse "12" as 0 instead of 12, we need to change the expected value
for the case where the locale format doesn't include %p. Also change the
time from 12:00:00 to 12:02:01 so we can tell if the minutes and seconds
get mixed up.

libstdc++-v3/ChangeLog:

PR libstdc++/103687
* testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Restore
original locale before returning.
* testsuite/22_locale/time_get/get_time/char/2.cc: Check for %p
in locale's T_FMT and adjust accordingly.
* testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/4.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc