Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: runtime/bin/file_win.cc

Issue 1228053002: Change stdout/stderr to binary mode on Windows (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Really use the _O_ version Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/io/stdio_nonblocking_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_win.cc
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
index 8ba4a30b042f85badb420f316ed7a970273862c2..54cd64d37d5e77f466dd9c8b9bf7acf1e96df90f 100644
--- a/runtime/bin/file_win.cc
+++ b/runtime/bin/file_win.cc
@@ -196,6 +196,7 @@ File* File::OpenStdio(int fd) {
default:
UNREACHABLE();
}
+ _setmode(fd, _O_BINARY);
return new File(new FileHandle(fd));
}
« no previous file with comments | « no previous file | tests/standalone/io/stdio_nonblocking_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698