Index: compiler/java/com/google/dart/compiler/DartCompiler.java |
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java |
index 98493b2062ab7ea961c5cd2204cc28969dc9cdf1..2378d681e56a247d4cd6e5a72df44a1e1097cd41 100644 |
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java |
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java |
@@ -1008,6 +1008,10 @@ public class DartCompiler { |
CompilerOptions topCompilerOptions = processCommandLineOptions(topArgs); |
boolean result = false; |
try { |
+ // configure UTF-8 output |
+ System.setOut(new PrintStream(System.out, true, "UTF-8")); |
+ System.setErr(new PrintStream(System.err, true, "UTF-8")); |
+ |
if (topCompilerOptions.showVersion()) { |
showVersion(topCompilerOptions); |
System.exit(0); |