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

Collator: JES2_b07a:i18n:Korean characters should be sorted with dictionary order

XMLWordPrintable

      OS : Solaris 9 sparc and x86
      Build Image : B07a
      Locale to install : ko.UTF-8, other locales should be the same but not tried.
      JVM locale : ko

      <how to reproduce>

      1. log into Identity Server using amamdin in ko locale
      2. add three organization using following Korean Characters :

      - \uac02
      - \ub620
      - \uc0ac
      These three characters should be sorted in the same order as shown above.
      However, they are sorted :

      - \ub620
      - \uc0ac
      - \uac02

      It seems to sort all korean characters using euc sorting order. \uac02 is one of the characters that is not defined euc encoding so it was put at the end because it does not know how to sort it. To prevent this kind of situation, we should use dictionary based sorting.

      I guess Identity Server using this kind of sorting... :
      Collator col = Collator.getinstance(new Locale("ko", "KR"));
      Collections.sort(list, col);

      However, LocaleElements_ko.java file only defines KSC5601-1987 characters. It has to be updated to include Korean Unicode characters.


            rgoel Rachna Goel (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: