United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4629351 : javaw.exe use different system default Locale than java.exe

Details
Type:
Bug
Submit Date:
2002-01-28
Status:
Resolved
Updated Date:
2003-04-12
Project Name:
JDK
Resolved Date:
2002-09-02
Component:
core-libs
OS:
windows_nt,windows_2000
Sub-Component:
java.nio.charsets
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports
Relates:

Sub Tasks

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
EVALUATION

We need to set Thread locale to default use locale for javaw


###@###.### 2002-04-27
                                     
2002-04-27
PUBLIC COMMENTS

Now default locale is the same for java and javaw.


###@###.### 2002-05-15
                                     
2002-05-15
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



Hardware and Software, Engineered to Work Together