diff options
| author | bors <bors@rust-lang.org> | 2015-06-01 23:12:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-01 23:12:52 +0000 |
| commit | 613e57b448c88591b6076a8cea9799f1f3876687 (patch) | |
| tree | 5299d5ba0c39781e9a6a74a3d1e67cf830cad088 /src/libstd/sys/windows | |
| parent | a49ae5bd4378cb47fd5cfdcd0c31e04d55373696 (diff) | |
| parent | 0ad019f4e86d68682dacb90f1d0d03cddba31bac (diff) | |
| download | rust-613e57b448c88591b6076a8cea9799f1f3876687.tar.gz rust-613e57b448c88591b6076a8cea9799f1f3876687.zip | |
Auto merge of #25246 - mzabaluev:io-invalid-data, r=alexcrichton
This takes the cases from `InvalidInput` where a data format error was encountered. This is different from the documented semantics of `InvalidInput`, which more likely indicate a programming error. Fixes rust-lang/rfcs#906
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/stdio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/stdio.rs b/src/libstd/sys/windows/stdio.rs index 03547165f5d..e56722a189d 100644 --- a/src/libstd/sys/windows/stdio.rs +++ b/src/libstd/sys/windows/stdio.rs @@ -170,5 +170,5 @@ impl Output { } fn invalid_encoding() -> io::Error { - io::Error::new(io::ErrorKind::InvalidInput, "text was not valid unicode") + io::Error::new(io::ErrorKind::InvalidData, "text was not valid unicode") } |
