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

Unified Diff: pkg/analyzer_experimental/bin/formatter.dart

Issue 22872012: Remove Encoding-enum from dart:io and add interface in dart:convert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 7 years, 4 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 | « pkg/analyzer_experimental/bin/analyzer.dart ('k') | pkg/barback/lib/src/asset.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_experimental/bin/formatter.dart
diff --git a/pkg/analyzer_experimental/bin/formatter.dart b/pkg/analyzer_experimental/bin/formatter.dart
index dd251803dec76490dec564d105d33c0c1f01f939..56734261e6c7a558be78ce78b48663024ef6f2af 100755
--- a/pkg/analyzer_experimental/bin/formatter.dart
+++ b/pkg/analyzer_experimental/bin/formatter.dart
@@ -37,7 +37,7 @@ _formatFile(path) {
var buffer = new StringBuffer();
var file = new File(path);
file.openRead()
- .transform(new StringDecoder())
+ .transform(UTF8.decoder)
.listen((data) => buffer.write(data),
onError: (error) => print('Error, could not open "$path"'),
onDone: () => print(_formatCU(buffer.toString())));
« no previous file with comments | « pkg/analyzer_experimental/bin/analyzer.dart ('k') | pkg/barback/lib/src/asset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698