提交 579252f9 编写于 作者: S sherman

6957230: CharsetEncoder.maxBytesPerChar() reports 4 for UTF-8; should be 3

Summary: changged utf-8's CharsetEncoder.maxBytesPerChar to 3
Reviewed-by: alanb
上级 ab09223a
...@@ -358,7 +358,7 @@ class UTF_8 extends Unicode ...@@ -358,7 +358,7 @@ class UTF_8 extends Unicode
private static class Encoder extends CharsetEncoder { private static class Encoder extends CharsetEncoder {
private Encoder(Charset cs) { private Encoder(Charset cs) {
super(cs, 1.1f, 4.0f); super(cs, 1.1f, 3.0f);
} }
public boolean canEncode(char c) { public boolean canEncode(char c) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册