Index: tools/testing/dart/test_runner.dart |
diff --git a/tools/testing/dart/test_runner.dart b/tools/testing/dart/test_runner.dart |
index 9df2b2565a7be6a9bf286a40a42e735259a694f8..292416e6d62d5fc1d2e598b7ec836bbfbf2877a8 100644 |
--- a/tools/testing/dart/test_runner.dart |
+++ b/tools/testing/dart/test_runner.dart |
@@ -1792,7 +1792,7 @@ class OutputLog { |
hasNonUtf8 = true; |
String malformed = UTF8.decode(data, allowMalformed: true); |
data..clear() |
- ..addAll(malformed.codeUnits) |
+ ..addAll(UTF8.encode(malformed)) |
..addAll(""" |
***************************************************************************** |