fix #4417, update news
This commit is contained in:
parent
dfee2bf66e
commit
f16140fc95
3 changed files with 17 additions and 1 deletions
|
|
@ -3670,3 +3670,8 @@ template closureScope*(body: untyped): untyped =
|
|||
|
||||
when defined(nimconfig):
|
||||
include "system/nimscript"
|
||||
|
||||
when defined(windows) and compileOption("app", "console"):
|
||||
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