Skip to content

Commit cceac72

Browse files
authored
Merge 2022-11 LWG Motion 11
P2539R4 Should the output of std::print to a terminal be synchronized with the underlying stream?
2 parents 2bb30a6 + 0cb7d4b commit cceac72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/iostreams.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6883,6 +6883,8 @@
68836883
\indextext{undefined}%
68846884
the behavior is undefined and
68856885
implementations are encouraged to diagnose it.
6886+
If the native Unicode API is used,
6887+
the function flushes \tcode{os} before writing \tcode{out}.
68866888
Otherwise (if \tcode{os} is not such a stream or
68876889
the function is \tcode{vprint_nonunicode}),
68886890
inserts the character sequence
@@ -7809,6 +7811,8 @@
78097811
the behavior is undefined and
78107812
implementations are encouraged to diagnose it.
78117813
Otherwise writes \tcode{out} to \tcode{stream} unchanged.
7814+
If the native Unicode API is used,
7815+
the function flushes \tcode{stream} before writing \tcode{out}.
78127816
\begin{note}
78137817
On POSIX and Windows, \tcode{stream} referring to a terminal means that,
78147818
respectively,

0 commit comments

Comments
 (0)