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()))); |