Skip to content

Commit 0979e45

Browse files
committed
Merge pull request processing#4350 from satoshiokita/fix-issue-1633
fixed a processing-java command encoding problem for Windows Prompt
2 parents 908e8f5 + 0b7462b commit 0979e45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/src/processing/mode/java/Commander.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ public Commander(String[] args) {
106106
try {
107107
systemOut = new PrintStream(System.out, true, "UTF-8");
108108
systemErr = new PrintStream(System.err, true, "UTF-8");
109-
109+
if (Platform.isWindows()) {
110+
systemOut = new PrintStream(System.out, true);
111+
systemErr = new PrintStream(System.err, true);
112+
}
110113
} catch (UnsupportedEncodingException e) {
111114
e.printStackTrace();
112115
System.exit(1);

0 commit comments

Comments
 (0)