fixes #4561
This commit is contained in:
parent
fd9d5ba59f
commit
fb37224b60
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue