summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-03 10:18:10 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-08-03 10:18:20 +0200
commitfb37224b6046bbb4148a5786df4ca9d0e35493f0 (patch)
tree8d3f949cc854bcb2be91f4619dba2c4010576b07 /lib
parentfd9d5ba59f021459006bdce599f8d2776ebc2dfa (diff)
downloadNim-fb37224b6046bbb4148a5786df4ca9d0e35493f0.tar.gz
fixes #4561
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index c2b45e01d..66daf3be1 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3671,7 +3671,7 @@ template closureScope*(body: untyped): untyped =
 when defined(nimconfig):
   include "system/nimscript"
 
-when defined(windows) and appType == "console":
+when defined(windows) and appType == "console" and not defined(nimconfig):
   proc setConsoleOutputCP(codepage: cint): cint {.stdcall, dynlib: "kernel32",
     importc: "SetConsoleOutputCP".}
   discard setConsoleOutputCP(65001) # 65001 - utf-8 codepage
\ No newline at end of file