Locale.getDefault() returns with invalid country code "KO" in windows(korean)

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.5
    • Component/s: core-libs
    • generic, x86
    • generic, windows_nt



      Name: gsC80088 Date: 02/08/99


      1.steps
         1.1 make test java program with following source code
         1.2 compile jdk1.1.5 's javac & run in windows(95 or NT) korean version
         1.3 it will produce ...

                 ko_KO

      2.source code

      import java.util.*;
      public class LocaleTest {
          public static void main(String[] args) {
              Locale defLocale = Locale.getDefault();
              System.out.println(defLocale);
          }
      }

      3. NA
      4. NA
      5. conflict with the constant Locale.KOREA which defines as "ko_KR" and
        ISO 3166 countries code () says the country code of 'Republic of Korea" is not "KO"
        but "KR".
        I trace related source and can guess the native System.initProperties() has bug with
        the property "user.region"...
      (Review ID: 26234)
      ======================================================================

            Assignee:
            J. Duke
            Reporter:
            Greg Stone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: