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

Czech sorting rules for the Greek alphabet

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_12"
      Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
      Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Verze 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      In Czech, letters of some foreign alphabets (e.g. Greek and Russian) are sorted according to their transcriptions. For example, '¿' is transcribed as 'alfa'.
      The RuleBasedCollator in JDK does not respect it.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      List<String> p = Arrays.asList(
          "alfa", "¿", "¿ ¿ástice", "alfa ¿ástice",
          "beta ¿ástice", "¿ ¿ástice", "¿", "beta");
      Collator c = Collator.getInstance(new Locale("cs"));
      Collections.sort(p, c);


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      ¿
      alfa
      ¿ ¿ástice
      alfa ¿ástice
      ¿
      beta
      ¿ ¿ástice
      beta ¿ástice

      ACTUAL -
      alfa
      alfa ¿ástice
      beta
      beta ¿ástice
      ¿
      ¿ ¿ástice
      ¿
      ¿ ¿ástice



      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      For a workaround, see http://www.java.cz/article/ceskerazeni.

        Attachments

          Activity

            People

            • Assignee:
              ljiang Leo Jiang
              Reporter:
              ndcosta Nelson Dcosta (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: