Skip to content

Commit 0b7462b

Browse files
committed
fixed a processing-java command encoding problem for Windows Command Prompt
1 parent 1ae92d6 commit 0b7462b

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)