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

Hard-coded '\ufffd' should use symbolic REPLACE_CHAR instead

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 6
    • core-libs
    • None

      Some encodings define REPLACE_CHAR, almost always to '\ufffd',
      but then go on and hard-code '\ufffd' in the source code anyways.
      Here are some:

      ./ext/DBCS_IBM_ASCII_Decoder.java:82: if (outputChar == '\uFFFD')
      ./ext/DBCS_IBM_EBCDIC_Decoder.java:116: if (outputChar == '\uFFFD')

      and others.

      (Of course, it is possible that '\ufffd' is used both as REPLACE_CHAR
      and as an internal special character in the implementation. If so,
      that is a deep source of confusion)

            sherman Xueming Shen
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: