JDK-6380839 : Java uses German Locale on English Windows-XP installation
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 5.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-02-03
  • Updated: 2011-02-16
  • Resolved: 2006-02-06
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 5.2.3790]

EXTRA RELEVANT SYSTEM CONFIGURATION :
English OS with a German keyboard and therefor a German keyboard map

A DESCRIPTION OF THE PROBLEM :
I need to use a German keyboard map, as I use a German keyboard layout on this machine, somehow, Java comes up with a German default locale, even if the underlying OS is English.

Even after changing the system's default input language, Java persists in using German as the default locale, therefor providing for example a German UI for the control panel.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The expected behavior would be for the default locale to match the system's locale.
ACTUAL -
Java seems to use the locale it encountered first when being installed on the machine.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
There seems to be no method to enforce any particular locale.

Comments
EVALUATION Looking at the submitter's reply, the Java runtime is working correctly as to Locale.getDefault() returning the locale which is specified in the Windows' user LCID. Yet what the submitter requested in the description (separating the user locale and the user interface locale) still holds true, which is already filed as an RFE 4700857. Closing this bug as a duplicate of 4700857.
06-02-2006

EVALUATION Can you please give us more information on this incident? Specially I need: 1. The Windows locale in "Standards and formats", which can be located in "Regional Options" tab in the "Regional and Language Options" in the control panel. 2. The Windows locale in "Language for non-Unicode programs", which can be located in "Advanced" tab in the "Regional and Language Options" in the control panel. 3. How did you know that Java's default locale is "German" on your system?
03-02-2006