JDK-4629351 : javaw.exe use different system default Locale than java.exe
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2002-01-28
  • Updated: 2003-04-12
  • Resolved: 2002-09-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Related Reports
Relates :  
Description

Name: jk109818			Date: 01/28/2002


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

AND

java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)


FULL OPERATING SYSTEM VERSION :
Windows 2000 Server build 2195 Service Pack 2.



A DESCRIPTION OF THE PROBLEM :
In Regional Options:
  My locale(location) is setted to English(United States),
and "Set default", Select System default locale to Chinese
(PRC). When starting my application by "java -jar
myapp.jar", it can display Chinese character correctly, but
when using "javaw -jar myapp.jar", it just shows something
unrecognizable.
When set locale(location) to Chinese(PRC), everything is
fine.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install a windows 2k English version, then install
Chinese locale.
2. Set locale as my description, then create a new file
with Chinese character in its name.
3. Use javaw to start any java application with "file open"
function, then use file browser to open the new created
file, you'll find the filename is unrecognizable.

EXPECTED VERSUS ACTUAL BEHAVIOR :
I hope javaw does the identical thing as java.

This bug can be reproduced always.
(Review ID: 137814) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis mantis-b02 FIXED IN: mantis mantis-b02 INTEGRATED IN: mantis mantis-b02
2004-06-14

PUBLIC COMMENTS Now default locale is the same for java and javaw. ###@###.### 2002-05-15
2002-05-15

EVALUATION We need to set Thread locale to default use locale for javaw ###@###.### 2002-04-27
2002-04-27