diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-03 10:18:10 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-03 10:18:20 +0200 |
commit | fb37224b6046bbb4148a5786df4ca9d0e35493f0 (patch) | |
tree | 8d3f949cc854bcb2be91f4619dba2c4010576b07 /lib | |
parent | fd9d5ba59f021459006bdce599f8d2776ebc2dfa (diff) | |
download | Nim-fb37224b6046bbb4148a5786df4ca9d0e35493f0.tar.gz |
fixes #4561
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 2 |
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 |