windows: garbled output because of codepage
This commit is contained in:
parent
0fa35f740b
commit
052e66e504
@ -100,6 +100,7 @@ Other changes
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 3.48.4 | 2018-11-18 | windows: garbled output because of codepage |
|
||||||
| 3.48.3 | 2018-11-18 | `dockerContainerStats()` fixed issue `cpu_percent` win |
|
| 3.48.3 | 2018-11-18 | `dockerContainerStats()` fixed issue `cpu_percent` win |
|
||||||
| 3.48.2 | 2018-11-18 | `dockerContainerStats()` fixed issue `cpu_percent`, win exec |
|
| 3.48.2 | 2018-11-18 | `dockerContainerStats()` fixed issue `cpu_percent`, win exec |
|
||||||
| 3.48.1 | 2018-11-17 | `docker...()` fixed issue parsing docker socket JSON |
|
| 3.48.1 | 2018-11-17 | `docker...()` fixed issue parsing docker socket JSON |
|
||||||
|
|||||||
@ -203,8 +203,8 @@ function execWin(cmd, opts, callback) {
|
|||||||
callback = opts;
|
callback = opts;
|
||||||
opts = execOptsWin;
|
opts = execOptsWin;
|
||||||
}
|
}
|
||||||
newCmd = 'chcp 65001 > nul && cmd /C ' + cmd + ' && chcp ' + codepageWin + ' > nul';
|
let newCmd = 'chcp 65001 > nul && cmd /C ' + cmd + ' && chcp ' + codepageWin + ' > nul';
|
||||||
exec(newCmd, util.execOptsWin, function (error, stdout) {
|
exec(newCmd, execOptsWin, function (error, stdout) {
|
||||||
callback(error, stdout)
|
callback(error, stdout)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user