Fixed chcp call bug on windows xp
This commit is contained in:
parent
61b06890c5
commit
acb6d0ef8e
1 changed files with 2 additions and 2 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue