fix #4417, update news

This commit is contained in:
miere43 2016-07-30 18:25:48 +03:00
commit f16140fc95
3 changed files with 17 additions and 1 deletions

View file

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