make/src/classes/build/tools/charsetmapping/SBCS.java

Print this page

        

@@ -173,10 +173,13 @@
                 if (isASCII)
                     line = "        return ((cs.name().equals(\"US-ASCII\")) || (cs instanceof " + clzName + "));";
                 else
                     line = "        return (cs instanceof " + clzName + ");";
             }
+            if (line.indexOf("$ASCIICOMPATIBLE$") != -1) {
+                line = line.replace("$ASCIICOMPATIBLE$", isASCII ? "true" : "false");
+            }
             if (line.indexOf("$B2CTABLE$") != -1) {
                 line = line.replace("$B2CTABLE$", b2c);
             }
             if (line.indexOf("$C2BLENGTH$") != -1) {
                 line = line.replace("$C2BLENGTH$", "0x" + Integer.toString(c2bOff, 16));