libstdc++: Fix std::print test case for Windows
commit1d8ac2a74fe37bb3d2fef63ed1ce19bc6f983189
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Dec 2023 12:58:37 +0000 (15 12:58 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Dec 2023 13:20:49 +0000 (15 13:20 +0000)
treeb27c7cad1b42bbe7c785bd35aa34b9e39952d381
parent7d2e100058790e3407ae02b6db4a276957deaa4f
libstdc++: Fix std::print test case for Windows

libstdc++-v3/ChangeLog:

* src/c++23/print.cc (__write_to_terminal) [_WIN32]: If handle
does not refer to the console then just write to it using normal
file I/O.
* testsuite/27_io/print/2.cc (as_printed_to_terminal): Print
error message on failure.
(test_utf16_transcoding): Adjust for as_printed_to_terminal
modifying its argument.
libstdc++-v3/src/c++23/print.cc
libstdc++-v3/testsuite/27_io/print/2.cc