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

JDK7 doesn't see the correct default locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • None
    • generic, x86
    • generic, windows_7

      Found while running Eclipse, and Mission control on a computer with swedish locale. Timestamps use the us format: "8.45AM" instead of the swedish "08.45".

      Java repro:
      import java.util.Locale;


      public class LocaleDefaultTest {
             public static void main(String[] args) {
                    System.out.println(Locale.getDefault());
          }
      }

      On my computer it will print out "sv_SE" with jdk6 and "en_US" with jdk7-137.
      Windows 7, x64 computer.

            naoto Naoto Sato
            nloodin Nils Loodin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: