windows: garbled output because of codepage
This commit is contained in:
+2
-2
@@ -203,8 +203,8 @@ function execWin(cmd, opts, callback) {
|
||||
callback = opts;
|
||||
opts = execOptsWin;
|
||||
}
|
||||
newCmd = 'chcp 65001 > nul && cmd /C ' + cmd + ' && chcp ' + codepageWin + ' > nul';
|
||||
exec(newCmd, util.execOptsWin, function (error, stdout) {
|
||||
let newCmd = 'chcp 65001 > nul && cmd /C ' + cmd + ' && chcp ' + codepageWin + ' > nul';
|
||||
exec(newCmd, execOptsWin, function (error, stdout) {
|
||||
callback(error, stdout)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user