Index: sdk/lib/utf/utf8.dart |
diff --git a/sdk/lib/utf/utf8.dart b/sdk/lib/utf/utf8.dart |
index b44cbe4e5cf9d9f5701034b1524acdb31f0101ad..893cf0fe39b7a7e4fe1695b90cf7791241a1fb0b 100644 |
--- a/sdk/lib/utf/utf8.dart |
+++ b/sdk/lib/utf/utf8.dart |
@@ -43,7 +43,7 @@ IterableUtf8Decoder decodeUtf8AsIterable(List<int> bytes, [int offset = 0, |
*/ |
String decodeUtf8(List<int> bytes, [int offset = 0, int length, |
int replacementCodepoint = UNICODE_REPLACEMENT_CHARACTER_CODEPOINT]) { |
- return codepointsToString( |
+ return new String.fromCharCodes( |
(new Utf8Decoder(bytes, offset, length, replacementCodepoint)) |
.decodeRest()); |
} |