[Bug libstdc++/71557] time_get is case sensitive

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 15 09:26:34 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71557

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:a5b4ebc217afe6c31334e017d1fead4a6b8e53b2

commit r12-5991-ga5b4ebc217afe6c31334e017d1fead4a6b8e53b2
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Dec 15 10:25:53 2021 +0100

    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.


More information about the Gcc-bugs mailing list