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

UnicodeScript.of(int) returns incorrect values for code points 0485, 0486

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • generic
    • generic

      http://www.unicode.org/Public/5.1.0/ucd/Scripts.txt
      0483..0487 ; Cyrillic # Mn [5] COMBINING CYRILLIC TITLO..COMBINING CYRILLIC POKRYTIE

      Please see the following minitest and it's output:
      ---------------------------------------------------------------
      import java.lang.Character.UnicodeScript;

      public class ScriptsTest {
          public static void main(String[] args) {
              for (int cp = 0x483; cp <= 0x487; cp++) {
                  System.out.println("cp:" + Integer.toHexString(cp)
                          + ", script:" + UnicodeScript.of(cp));
              }
          }
      }

      C:\JDK\7b107\bin>java -version
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b107)
      Java HotSpot(TM) Client VM (build 19.0-b05, mixed mode)

      C:\JDK\7b107\bin>java ScriptsTest
      cp:483, script:CYRILLIC
      cp:484, script:CYRILLIC
      cp:485, script:INHERITED
      cp:486, script:INHERITED
      cp:487, script:CYRILLIC
      ---------------------------------------------------------------

            sherman Xueming Shen
            dmiltsov Dmitry Miltsov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: