< prev index next >

src/share/classes/sun/nio/cs/ext/ISO2022_JP.java

Print this page
rev 13451 : 8211382: ISO2022JP and GB18030 NIO converter issues
Reviewed-by: sherman, rriggs

@@ -307,11 +307,11 @@
                                 return CoderResult.unmappableForLength(inputSize);
                             da[dp++] = c;
                             break;
                         case JISX0201_1976_KANA:
                         case SHIFTOUT:
-                            if (b1 > 0x60) {
+                            if (b1 > 0x5f) {
                                 return CoderResult.malformedForLength(inputSize);
                             }
                             da[dp++] = (char)(b1 + 0xff40);
                             break;
                     }

@@ -428,11 +428,11 @@
                                 return CoderResult.unmappableForLength(inputSize);
                             dst.put(c);
                             break;
                         case JISX0201_1976_KANA:
                         case SHIFTOUT:
-                            if (b1 > 0x60) {
+                            if (b1 > 0x5f) {
                                 return CoderResult.malformedForLength(inputSize);
                             }
                             dst.put((char)(b1 + 0xff40));
                             break;
                     }
< prev index next >