Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4629351
Votes 20
Synopsis javaw.exe use different system default Locale than java.exe
Category java:char_encodings
Reported Against 1.4.0_00 , merlin-rc1
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 4780862
Submit Date 28-JAN-2002
Description
Now default locale is the same for java and javaw.


 xxxxx@xxxxx  2002-05-15




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) 
======================================================================
Work Around
N/A
Evaluation
We need to set Thread locale to default use locale for javaw


 xxxxx@xxxxx  2002-04-27
Comments
  
  Include a link with my name & email   

Submitted On 09-MAY-2002
keitam
I'm working in Japan. This is so serious problem.


Submitted On 09-MAY-2002
masasasaki
This is very serious, please fix this ASAP.



PLEASE NOTE: JDK6 is formerly known as Project Mustang