[Bug libstdc++/103911] std::from_chars shouldn't call isdigit

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 2 11:03:35 GMT 2022


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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:86d821ddf5615e693ead667b2580898f46de8eb9

commit r13-70-g86d821ddf5615e693ead667b2580898f46de8eb9
Author: Patrick Palka <ppalka@redhat.com>
Date:   Mon May 2 07:01:33 2022 -0400

    libstdc++: Don't use std::tolower in <charconv> [PR103911]

    As with std::isdigit in r12-6281-gc83ecfbe74a5cf, we shouldn't be using
    std::tolower in <charconv> either.

            PR libstdc++/103911

    libstdc++-v3/ChangeLog:

            * src/c++17/floating_from_chars.cc (find_end_of_float): Accept
            two delimeters for the exponent part in the form of a possibly
            NULL string of length two.  Don't use std::tolower.
            (pattern): Adjust calls to find_end_of_float accordingly.


More information about the Gcc-bugs mailing list