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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.1.5
    • core-libs
    • generic, x86
    • generic, windows_nt

    Description



      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)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              duke J. Duke
              gstone Greg Stone
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: