From acb6d0ef8edfe37859f11fd7a530df9cf0e0ca48 Mon Sep 17 00:00:00 2001 From: Anatoly Galiulin Date: Tue, 21 Jul 2015 12:16:55 +0600 Subject: [PATCH] Fixed chcp call bug on windows xp --- src/nimble.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nimble.nim b/src/nimble.nim index ab6a233..b6f25f9 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -573,9 +573,9 @@ proc installFromDir(dir: string, latest: bool, options: Options, elif defined(windows): let dest = binDir / cleanBin.changeFileExt("cmd") echo("Creating stub: ", pkgDestDir / bin, " -> ", dest) - var contents = "" + var contents = "@" if options.config.chcp: - contents.add "chcp 65001\n" + contents.add "chcp 65001 > nul && " contents.add "\"" & pkgDestDir / bin & "\" %*\n" writeFile(dest, contents) # For bash on Windows (Cygwin/Git bash).