Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4073498

Motif encoding converters don't handle unknown characters as specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.2.0
    • core-libs
    • None

      The encoding converter API (src/share/classes/sun/io/CharToByteConverter.java) specifies the following behavior when unknown characters are encountered in the input: If substitution mode is enabled, the unknown character is mapped to the substitution bytes for the converter. If substitution mode is disabled, an UnknownCharacterException is thrown.

      None of the motif encoding converters implement this behavior as specified. Most map unknown characters to random, implementation-dependent bytes. The Dingbats converter throws the exception independent of the substitution mode.

      This bug makes the current implementation of multi-fonts completely unusable - text that needs multiple fonts is at most partially displayed. See bug 4072782 for details.

            sherman Xueming Shen
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: