encode arg for cscript
This commit is contained in:
parent
67d20da312
commit
16db4b4c1c
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
var
|
||||
FSO_ForReading = 1, FSO_ForWriting = 2,
|
||||
PS_MSG = 'Microsoft Windows PowerShell is required.\n' +
|
||||
PS_MSG = 'Microsoft Windows PowerShell is required.' +
|
||||
' https://technet.microsoft.com/en-us/library/hh847837.aspx',
|
||||
|
||||
input, fso, tty,
|
||||
|
|
|
@ -212,6 +212,7 @@ function readlineExt(options) {
|
|||
}
|
||||
}
|
||||
if (IS_WIN && !process.env.PSModulePath) { // Windows Script Host
|
||||
options.encoded = true; // Parsing args is DOS?
|
||||
// ScriptPW (Win XP and Server2003) needs TTY stream as STDIN.
|
||||
// In this case, If STDIN isn't TTY, an error is thrown.
|
||||
execOptions.stdio = [process.stdin];
|
||||
|
|
Loading…
Reference in a new issue