Index: sdk/lib/convert/base64.dart |
diff --git a/sdk/lib/convert/base64.dart b/sdk/lib/convert/base64.dart |
index 9ab025bd0733bc574a94915e47bc864f41f1c37d..64a63e663349b37102ac0a0e61fdc243ed978d52 100644 |
--- a/sdk/lib/convert/base64.dart |
+++ b/sdk/lib/convert/base64.dart |
@@ -65,7 +65,7 @@ class Base64Encoder extends Converter<List<int>, String> { |
ByteConversionSink startChunkedConversion(Sink<String> sink) { |
if (sink is StringConversionSink) { |
- return new _Utf8Base64EncoderSink(sink.asUtf8Sink()); |
+ return new _Utf8Base64EncoderSink(sink.asUtf8Sink(false)); |
} |
return new _AsciiBase64EncoderSink(sink); |
} |
@@ -575,7 +575,7 @@ class _Base64Decoder { |
if (expectedPadding > 0) { |
int firstChar = input.codeUnitAt(start); |
if (firstChar != _paddingChar) { |
- throw new FormatException("Missing padding character", string, start); |
+ throw new FormatException("Missing padding character", input, start); |
} |
state = _encodePaddingState(0); |
start++; |