summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c
index c8b583a..15d0cc5 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -162,6 +162,10 @@ main(argc, argv)
}
if (unbuffered) {
+#ifdef MS_WINDOWS
+ _setmode(stdin, O_BINARY);
+ _setmode(stdout, O_BINARY);
+#endif
#ifndef MPW
setbuf(stdout, (char *)NULL);
setbuf(stderr, (char *)NULL);