Merge pull request #4350 from satoshiokita/fix-issue-1633

fixed a processing-java command encoding problem for Windows Prompt
This commit is contained in:
Ben Fry
2016-05-08 14:00:09 -04:00

View File

@@ -106,7 +106,10 @@ public class Commander implements RunnerListener {
try {
systemOut = new PrintStream(System.out, true, "UTF-8");
systemErr = new PrintStream(System.err, true, "UTF-8");
if (Platform.isWindows()) {
systemOut = new PrintStream(System.out, true);
systemErr = new PrintStream(System.err, true);
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
System.exit(1);