JDK-4938906 : javaw fails to recognize system's default locale
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-10-16
  • Updated: 2003-10-17
  • Resolved: 2003-10-17
Related Reports
Duplicate :  
Description
Name: gm110360			Date: 10/16/2003


FULL PRODUCT VERSION :
java version "1.4.2_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

FULL OS VERSION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
javaw fails to recognize system's default locale on Windows 2000/XP. (It can on Windows 98SE.)

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Download http://prdownloads.sourceforge.net/vietpad/VietPad-1.0.9-Beta.zip
2. Unzip and copy font.properties.vi to j2re/lib directory
3. Change system's default locale via Regional Option in Control Panel from English (United States) to Vietnamese
4. Open a DOS console and navigate to VietPad's installation directory.
5. Execute the following command:

javaw -jar VietPad.jar

Or double-click on VietPad.jar file in Windows Explorer in lieu of Steps 4-5 to launch the application.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The program should launch with Vietnamese user interface.
ACTUAL -
The English user interface shows.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
http://prdownloads.sourceforge.net/vietpad/VietPad-1.0.9-Beta-src.zip
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Accompany the javaw command with locale switches:

javaw -Duser.language=vi -Duser.region=VN -jar VietPad.jar


Or use the java command instead:

java -jar VietPad.jar

correctly launches the program with Vietnamese user interface.
(Incident Review ID: 216009) 
======================================================================

Comments
EVALUATION This is a launcher issue and a duplicate of 4891531. ###@###.### 2003-10-17
17-10-2003