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

Unified Diff: tools/testing/dart/test_runner.dart

Issue 2721683002: [test.dart]: Fix output encoding in case of non-utf8 test output (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("""
*****************************************************************************
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698