From 39f4a3e41872c35a6b4acd9d57dde7ffb5a09458 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 16 Aug 2019 15:20:39 +0200 Subject: [PATCH] fixes #11801 --- changelog.md | 3 +++ lib/system/io.nim | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 1b897b201e..e662ea110a 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 defe29a4cb..ec7618f6db 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) {.