CollationElements missing from de (German) locale

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.6
    • Component/s: core-libs
    • unknown
    • generic

      The German collation elements are missing from LocaleElements_de.java in
      JDK 1.1.6 which causes incorrect handling of German umlaut characters in
      collation sequences.

      The following program demonstrates the problem. In JDK1.1.5 the result
      is "1" (correct). In JDK1.1.6 the result is -1 (incorrect).

              import java.text.Collator;
              import java.util.Locale;

              class Test1 {
                      public static void main (String[] argv) {

                          String s1 ="Tofu";
                          String s2 ="T\u00F6ne";

                          Collator c = Collator.getInstance(new Locale ("de", "DE"))
                          System.out.println (c.compare(s1, s2));
                      }
              }

            Assignee:
            Richard Gillam (Inactive)
            Reporter:
            Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: