src/java.desktop/unix/classes/sun/awt/motif/X11Johab.java
Print this page
@@ -26,11 +26,10 @@
package sun.awt.motif;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import java.nio.charset.CharsetDecoder;
-import sun.nio.cs.ext.DoubleByteEncoder;
public class X11Johab extends Charset {
public X11Johab () {
super("X11Johab", null);
}
@@ -42,11 +41,11 @@
public CharsetDecoder newDecoder() {
throw new Error("Decoder is not supported by X11Johab Charset");
}
public boolean contains(Charset cs) {
- return cs instanceof X11GB18030_1;
+ return cs instanceof X11Johab;
}
private static class Encoder extends DoubleByteEncoder {
public Encoder(Charset cs) {
super(cs, index1, index2);