We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cfbe54 commit dd3b79eCopy full SHA for dd3b79e
library/std/src/sys/windows/stdio.rs
@@ -84,8 +84,8 @@ fn write(
84
"Unexpected number of bytes for incomplete UTF-8 codepoint."
85
);
86
if data[0] >> 6 != 0b10 {
87
- incomplete_utf8.len = 0;
88
// not a continuation byte - reject
+ incomplete_utf8.len = 0;
89
return Err(io::Error::new_const(
90
io::ErrorKind::InvalidData,
91
&"Windows stdio in console mode does not support writing non-UTF-8 byte sequences",
0 commit comments