| Index: sdk/lib/convert/utf.dart
|
| diff --git a/sdk/lib/convert/utf.dart b/sdk/lib/convert/utf.dart
|
| index f45a192679297ba55aa5df3326bff30ef3109049..80f7a7837f15ece8586f67385f46b0d3b5f3fd03 100644
|
| --- a/sdk/lib/convert/utf.dart
|
| +++ b/sdk/lib/convert/utf.dart
|
| @@ -177,7 +177,7 @@ class _Utf8Encoder {
|
| for (stringIndex = start; stringIndex < end; stringIndex++) {
|
| int codeUnit = str.codeUnitAt(stringIndex);
|
| // ASCII has the same representation in UTF-8 and UTF-16.
|
| - if (codeUnit < _ONE_BYTE_LIMIT) {
|
| + if (codeUnit <= _ONE_BYTE_LIMIT) {
|
| if (_bufferIndex >= _buffer.length) break;
|
| _buffer[_bufferIndex++] = codeUnit;
|
| } else if (_isLeadSurrogate(codeUnit)) {
|
|
|