This commit is contained in:
Count Count
2021-03-21 11:48:51 +01:00
parent 27393d5ca6
commit a941e68e08

View File

@@ -144,9 +144,9 @@ fn write(
incomplete_utf8.len = 1; incomplete_utf8.len = 1;
return Ok(1); return Ok(1);
} else { } else {
return Err(io::Error::new_const( return Err(io::Error::new(
io::ErrorKind::InvalidData, io::ErrorKind::InvalidData,
&"Windows stdio in console mode does not support writing non-UTF-8 byte sequences", "Windows stdio in console mode does not support writing non-UTF-8 byte sequences",
)); ));
} }
} }