diff options
| author | bors <bors@rust-lang.org> | 2016-03-13 09:27:17 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-13 09:27:17 -0700 |
| commit | ce943eb369c9bdd0aef4917675e515f39f3b4a1e (patch) | |
| tree | b66a3a32cd6198ffea1bbf50afeba20092c5ca2e /src/rustllvm/RustWrapper.cpp | |
| parent | 1c8b245928c3f2463b45fbddd862a0a70882d087 (diff) | |
| parent | bd80a53407e15f13ce50a07642491680010fa090 (diff) | |
| download | rust-ce943eb369c9bdd0aef4917675e515f39f3b4a1e.tar.gz rust-ce943eb369c9bdd0aef4917675e515f39f3b4a1e.zip | |
Auto merge of #32184 - ollie27:win_stdout, r=alexcrichton
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/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
