Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 12036045: Issue 7884. Use UTF-8 for output. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/co19/co19-compiler.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698