From fb37224b6046bbb4148a5786df4ca9d0e35493f0 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 3 Aug 2016 10:18:10 +0200 Subject: fixes #4561 --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit 1.4.1-2-gfad0