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

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

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: