mirror of
https://github.com/processing/processing4.git
synced 2026-04-27 06:30:47 +02:00
fix output for command line on Windows
This commit is contained in:
@@ -101,14 +101,18 @@ public class Commander implements RunnerListener {
|
||||
int task = HELP;
|
||||
boolean embedJava = true;
|
||||
|
||||
// Turns out the output goes as MacRoman or something else useless.
|
||||
// http://code.google.com/p/processing/issues/detail?id=1418
|
||||
try {
|
||||
systemOut = new PrintStream(System.out, true, "UTF-8");
|
||||
systemErr = new PrintStream(System.err, true, "UTF-8");
|
||||
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 {
|
||||
// On OS X, the output goes as MacRoman or something else useless.
|
||||
// http://code.google.com/p/processing/issues/detail?id=1418
|
||||
// (Not sure about Linux, but this has worked since 2.0)
|
||||
systemOut = new PrintStream(System.out, true, "UTF-8");
|
||||
systemErr = new PrintStream(System.err, true, "UTF-8");
|
||||
}
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
12
todo.txt
12
todo.txt
@@ -1,4 +1,6 @@
|
||||
0249 (3.0.3)
|
||||
o arrow keys aren't working in the examples window
|
||||
X was working fine with most recent build.. weird
|
||||
|
||||
|
||||
contribs
|
||||
@@ -12,9 +14,9 @@ X https://github.com/processing/processing/issues/4308
|
||||
X https://github.com/processing/processing/pull/4309
|
||||
X Empty sketchbook message when sketchbook is empty
|
||||
X https://github.com/processing/processing/pull/4311
|
||||
_ processing-java output as UTF-8 makes Windows unhappy
|
||||
_ https://github.com/processing/processing/issues/1633
|
||||
_ includes possible fix for Windows
|
||||
X processing-java output as UTF-8 makes Windows unhappy
|
||||
X https://github.com/processing/processing/issues/1633
|
||||
X https://github.com/processing/processing/pull/4350
|
||||
|
||||
jakub
|
||||
X Update app to Java 8
|
||||
@@ -36,6 +38,8 @@ X https://github.com/processing/processing/pull/4426
|
||||
_ double check that this is working on OS X
|
||||
X Java Mode refactoring
|
||||
X https://github.com/processing/processing/pull/4440
|
||||
X jump to variable declaration miss
|
||||
X https://github.com/processing/processing/issues/4287
|
||||
X Numbers in scientific notation not recognized as floats in 3.0
|
||||
X https://github.com/processing/processing/issues/4190
|
||||
X Adding .java files to sketch causes the Error Checker to weird out
|
||||
@@ -60,8 +64,6 @@ _ Ignore memory options when exporting for ARM
|
||||
_ https://github.com/processing/processing/pull/4406
|
||||
|
||||
|
||||
_ arrow keys aren't working in the examples window
|
||||
|
||||
_ createPreprocessor() added to JavaEditor
|
||||
https://github.com/processing/processing/commit/2ecdc36ac7c680eb36e271d17ad80b657b3ae6a0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user