<print>
: std::print
may incorrectly display multibyte characters
#5239
Labels
bug
Something isn't working
Describe the bug
std::print
incorrectly displays characters that take two or more bytes, when they appear at the boundary of 256 bytes long chunk. This happens only whenstdout
is a console and nonlocking formatting is used.Command-line test case
Expected output
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaą
STL version
This bug was introduced in #4821.
The text was updated successfully, but these errors were encountered: