Index: lib/src/file_system/console.dart |
diff --git a/lib/src/file_system/console.dart b/lib/src/file_system/console.dart |
index 84827a91d0e4bc93f2c463fb5562f034247ec26e..c8a9d616eb06a806e1c5b335d2192bf9cb5a0389 100644 |
--- a/lib/src/file_system/console.dart |
+++ b/lib/src/file_system/console.dart |
@@ -5,8 +5,8 @@ |
library console; |
import 'dart:async'; |
+import 'dart:convert'; |
import 'dart:io'; |
-import 'dart:utf'; |
import 'package:web_ui/src/file_system.dart'; |
/** File system implementation for console VM (i.e. no browser). */ |
@@ -42,6 +42,6 @@ class ConsoleFileSystem implements FileSystem { |
// TODO(jmesserly): do we support any encoding other than UTF-8 for Dart? |
Future<String> readText(String path) { |
- return readTextOrBytes(path).then(decodeUtf8); |
+ return readTextOrBytes(path).then(UTF8.decode); |
} |
} |