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

Incorrect Case Folding of Unicode Block "Cherokee Supplement"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9.0.1
    • core-libs
    • JRE 9.0.1, Win 8.1, 64 Bit

      Since JRE 9 the Unicode Block "Cherokee Supplement" is supported by JRE. The Unicode Consortium mandates special case folding rules for "Cherokee" in the file CaseFolding-8.0.0.txt (see http://www.unicode.org/Public/8.0.0/ucd/CaseFolding.txt). Unfortunately, JRE 9 does not obey these rules, hence case folding works wrong in JRE 9.

      Example: CaseFolding-8.0.0.txt mandates the outcome for case folding for code point 0x13F8 to be 0x13F0, but JRE 9 incorrectly produces 0x13F8 -- which simply is wrong.

      Steps to reproduce:
      * new String(new byte[] {(byte) 0x13, (byte) 0xF8}).toUpperCase().toLowerCase().codePoints();

      Expected result:
      * 13F0

      Actual result:
      * 13F8

            rgoel Rachna Goel (Inactive)
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: