changeset 3264:b44704ce8a08

6957230: CharsetEncoder.maxBytesPerChar() reports 4 for UTF-8; should be 3 Summary: changged utf-8's CharsetEncoder.maxBytesPerChar to 3 Reviewed-by: alanb
author sherman
date Fri, 19 Nov 2010 12:58:32 -0800
parents d9e4556acd4a
children ff619988afac
files src/share/classes/sun/nio/cs/UTF_8.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/nio/cs/UTF_8.java	Fri Nov 19 12:55:42 2010 -0800
+++ b/src/share/classes/sun/nio/cs/UTF_8.java	Fri Nov 19 12:58:32 2010 -0800
@@ -358,7 +358,7 @@
     private static class Encoder extends CharsetEncoder {
 
         private Encoder(Charset cs) {
-            super(cs, 1.1f, 4.0f);
+            super(cs, 1.1f, 3.0f);
         }
 
         public boolean canEncode(char c) {