diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2016-03-10 19:09:02 +0000 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2016-03-10 21:15:23 +0000 |
| commit | 8427efaab377346c0c4be73664422897a4072330 (patch) | |
| tree | 69723a049b19d200f1eb35ff9778750f894282d6 /src/libsyntax/errors | |
| parent | 4b87655e69a6d07f03b104caaec80a042ad40bf1 (diff) | |
| download | rust-8427efaab377346c0c4be73664422897a4072330.tar.gz rust-8427efaab377346c0c4be73664422897a4072330.zip | |
Fixup stout/stderr on Windows
WriteConsoleW can fail if called with a large buffer so we need to slice any stdout/stderr output. However the current slicing has a few problems: 1. It slices by byte but still expects valid UTF-8. 2. The slicing happens even when not outputting to a console. 3. panic! output is not sliced. This fixes these issues by moving the slice to right before WriteConsoleW and slicing on a char boundary.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions
