diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-30 19:54:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-30 19:54:26 +0200 |
commit | 904e17b094b3638a8f12a62c1afe1a53cb8bd609 (patch) | |
tree | ba6b1dde2169d4d41ca752b099e7128570fba16d /lib | |
parent | dfee2bf66e80c950b7aa2be62dc0deab74aa56e7 (diff) | |
parent | 70ea30d492ce038ae36dcceffece09c0b074721c (diff) | |
download | Nim-904e17b094b3638a8f12a62c1afe1a53cb8bd609.tar.gz |
Merge pull request #4544 from miere43/fix-4417-n
fix #4417 (new)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim index 6a9b52d24..c2b45e01d 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3670,3 +3670,8 @@ template closureScope*(body: untyped): untyped = when defined(nimconfig): include "system/nimscript" + +when defined(windows) and appType == "console": + proc setConsoleOutputCP(codepage: cint): cint {.stdcall, dynlib: "kernel32", + importc: "SetConsoleOutputCP".} + discard setConsoleOutputCP(65001) # 65001 - utf-8 codepage \ No newline at end of file |