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

[BI] line breaking was failed with a space char, \u1680

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • x86
    • windows_nt

      According to the Unicode LineBreaking Properties doc(http://www.unicode.org/unicode/reports/tr14);
      If "GL"(none breaking Glue) categorized chars follow a space character, they still allow a break.

      However build 1.4.0beta-b43 were failed with space char, \u1680(Zs category). If GL appends \u1680 it should break at \u1680 but jdk doesn't break.

      Try attached "LineBreakTest".

      -----------------------------------------
      I:\unicode>java LineBreakTest
      10617 unicode chararacters were tested.
      6 chars were reported as Glue
      test failed

      Exception in thread "main" java.lang.RuntimeException: LineBreak.txt reads 'glue
       char' but jdk doesn't:
      0F0C(scenario two) with space char, 1680
      FEFF(scenario two) with space char, 1680
      202F(scenario two) with space char, 1680
      2011(scenario two) with space char, 1680
      2007(scenario two) with space char, 1680
      00A0(scenario two) with space char, 1680

              at LineBreakTest.main(LineBreakTest.java:114)
      ------------------------------------------
      bae-chul.kim@eng 2000-12-08
      ###@###.### 11/2/04 18:28 GMT

            peytoia Yuka Kamiya (Inactive)
            bkimsunw Bae-chul Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: