summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--changelog.md3
-rw-r--r--lib/system/io.nim2
2 files changed, 4 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 1b897b201..e662ea110 100644
--- a/changelog.md
+++ b/changelog.md
@@ -3,6 +3,9 @@
 
 ## Changes affecting backwards compatibility
 
+- The switch ``-d:nimBinaryStdFiles`` does not exist anymore. Instead
+  stdin/stdout/stderr are binary files again. This change only affects
+  Windows.
 
 ### Breaking changes in the standard library
 
diff --git a/lib/system/io.nim b/lib/system/io.nim
index defe29a4c..ec7618f6d 100644
--- a/lib/system/io.nim
+++ b/lib/system/io.nim
@@ -569,7 +569,7 @@ when declared(stdout):
       releaseSys echoLock
 
 
-when defined(windows) and not defined(nimscript) and defined(nimBinaryStdFiles):
+when defined(windows) and not defined(nimscript):
   # work-around C's sucking abstraction:
   # BUGFIX: stdin and stdout should be binary files!
   proc c_setmode(handle, mode: cint) {.