| Index: sdk/lib/utf/utf8.dart
|
| diff --git a/sdk/lib/utf/utf8.dart b/sdk/lib/utf/utf8.dart
|
| index 893cf0fe39b7a7e4fe1695b90cf7791241a1fb0b..a218fc198434a895548b34d73691e04a566db6a3 100644
|
| --- a/sdk/lib/utf/utf8.dart
|
| +++ b/sdk/lib/utf/utf8.dart
|
| @@ -90,7 +90,7 @@ List<int> codepointsToUtf8(
|
| int insertAt = 0;
|
| for (int value in source) {
|
| if (value < 0 || value > UNICODE_VALID_RANGE_MAX) {
|
| - encoded.setRange(insertAt, 3, [0xef, 0xbf, 0xbd]);
|
| + encoded.setRange(insertAt, insertAt + 3, [0xef, 0xbf, 0xbd]);
|
| insertAt += 3;
|
| } else if (value <= _UTF8_ONE_BYTE_MAX) {
|
| encoded[insertAt] = value;
|
|
|