powerShell() fix UTF8 output (windows)
This commit is contained in:
+1
-1
@@ -479,7 +479,7 @@ function powerShell(cmd) {
|
||||
const spanOptions =
|
||||
osVersion[0] < 10
|
||||
? ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-NoExit', '-ExecutionPolicy', 'Unrestricted', '-Command', '-']
|
||||
: ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', cmd];
|
||||
: ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-ExecutionPolicy', 'Unrestricted', '-Command', _psToUTF8 + cmd];
|
||||
const child = spawn(_powerShell, spanOptions, {
|
||||
stdio: 'pipe',
|
||||
windowsHide: true,
|
||||
|
||||
Reference in New Issue
Block a user