libstdc++: Poor man's case insensitive comparisons in time_get [PR71557]
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Dec 2021 09:25:53 +0000 (10:25 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 15 Dec 2021 09:25:53 +0000 (10:25 +0100)
commita5b4ebc217afe6c31334e017d1fead4a6b8e53b2
tree9873099fcd6aeaa5053b69ab180b7aaca7f2405b
parent8f9fea41a767f6ad8cf3d521031048a2491f98b1
libstdc++: Poor man's case insensitive comparisons in time_get [PR71557]

This patch uses the same not completely correct case insensitive comparisons
as used elsewhere in the same header.  Proper comparisons that would handle
even multi-byte characters would be harder, but I don't see them implemented
in __ctype's methods.

2021-12-15  Jakub Jelinek  <jakub@redhat.com>

PR libstdc++/71557
* include/bits/locale_facets_nonio.tcc (_M_extract_via_format):
Compare characters other than format specifiers and whitespace
case insensitively.
(_M_extract_name): Compare characters case insensitively.
* testsuite/22_locale/time_get/get/char/71557.cc: New test.
* testsuite/22_locale/time_get/get/wchar_t/71557.cc: New test.
libstdc++-v3/include/bits/locale_facets_nonio.tcc
libstdc++-v3/testsuite/22_locale/time_get/get/char/71557.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/time_get/get/wchar_t/71557.cc [new file with mode: 0644]