This commit is contained in:
Andreas Rumpf
2016-08-03 10:18:10 +02:00
parent fd9d5ba59f
commit fb37224b60

View File

@@ -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