Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions java/src/processing/mode/java/Commander.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,8 @@ public Commander(String[] args) {
int task = HELP;
boolean embedJava = true;

if (Platform.isWindows()) {
// On Windows, it needs to use the default system encoding.
// https://github.com/processing/processing/issues/1633
systemOut = new PrintStream(System.out, true);
systemErr = new PrintStream(System.err, true);
} else {
// OS X formerly used MacRoman or something else useless.
// (Not sure about Linux, but this has worked since 2.0)
// https://github.com/processing/processing/issues/1456
systemOut = new PrintStream(System.out, true, StandardCharsets.UTF_8);
systemErr = new PrintStream(System.err, true, StandardCharsets.UTF_8);
}
systemOut = new PrintStream(System.out, true, StandardCharsets.UTF_8);
systemErr = new PrintStream(System.err, true, StandardCharsets.UTF_8);

int argOffset = 0;
for (String arg : args) {
Expand Down
Loading