Breaking: Windows: Set code page of command batch script to UTF-8

This commit is contained in:
Joran Dirk Greef 2017-11-02 12:43:00 +02:00
parent 30cd59a0c5
commit 6a0577a387

View file

@ -557,6 +557,8 @@ function WindowsWriteCommandScript(instance, end) {
}
var script = [];
script.push('@echo off');
// Set code page to UTF-8:
script.push('chcp 65001>nul');
script.push('cd "' + cwd + '"');
script.push(instance.command);
script = script.join('\r\n');