Index: tests/standalone/io/process_std_io_script2.dart |
diff --git a/tests/standalone/io/process_std_io_script2.dart b/tests/standalone/io/process_std_io_script2.dart |
index db5792956cd037e4a0ad17bf5904a51eb2816f50..0bd1a3e580edf1064e2eb65f066d30b216316e6f 100644 |
--- a/tests/standalone/io/process_std_io_script2.dart |
+++ b/tests/standalone/io/process_std_io_script2.dart |
@@ -5,6 +5,7 @@ |
// Utility script to echo strings in various formats to stdout or |
// stderr. |
+import "dart:convert"; |
import "dart:io"; |
writeData(data, encoding, stream) { |
@@ -34,11 +35,11 @@ main() { |
if (options.arguments.length > 1) { |
var stream = options.arguments[1]; |
if (options.arguments[0] == "ascii") { |
- writeData(asciiString, Encoding.ASCII, stream); |
+ writeData(asciiString, ASCII, stream); |
} else if (options.arguments[0] == "latin1") { |
- writeData(latin1String, Encoding.ISO_8859_1, stream); |
+ writeData(latin1String, LATIN1, stream); |
} else if (options.arguments[0] == "utf8") { |
- writeData(utf8String, Encoding.UTF_8, stream); |
+ writeData(utf8String, UTF8, stream); |
} else if (options.arguments[0] == "binary") { |
writeData(binary, null, stream); |
} |