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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <[email protected]>:

https://gcc.gnu.org/g:18c306b1f42e3edab6c6fd1a2173d7405a0a9def

commit r16-6279-g18c306b1f42e3edab6c6fd1a2173d7405a0a9def
Author: Jonathan Wakely <[email protected]>
Date:   Thu Dec 18 16:39:46 2025 +0000

    libstdc++: Fix chrono::parse to read from wide strings [PR123147]

    When we extract wide characters and insert them into a stringstream to
    be parsed as a floating-point value, we should use a stringstream of
    char, not wchar_t.

    libstdc++-v3/ChangeLog:

            PR libstdc++/123147
            * include/bits/chrono_io.h (_Parser::operator()) <%S>: Use a
            buffer of narrow characters to be parsed by std::from_chars.
            * testsuite/std/time/parse/parse.cc: Check wchar_t parsing.

Reply via email to