libstdc++: Do not add padding for std::print to std::ostream
commit8a5cac92e7c20e13f01ca0cfa5dc00d014caf0d3
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Dec 2023 12:21:36 +0000 (15 12:21 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Dec 2023 13:20:49 +0000 (15 13:20 +0000)
tree2d9a012430f15eafc225b75b35ebead051eaeec9
parent3fa689f6ed8387d315e58169bb9bace3bd508c0a
libstdc++: Do not add padding for std::print to std::ostream

Tim Song pointed out that although std::print behaves as a formatted
output function, it does "determine padding" using the stream's flags.

libstdc++-v3/ChangeLog:

* include/std/ostream (vprint_nonunicode, vprint_unicode): Do
not insert padding.
* testsuite/27_io/basic_ostream/print/1.cc: Adjust expected
behaviour.
libstdc++-v3/include/std/ostream
libstdc++-v3/testsuite/27_io/basic_ostream/print/1.cc