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)); |
} |