Bug 33412 - GB18030: Can't set JRE in a path contains GB18030 characters
Summary: GB18030: Can't set JRE in a path contains GB18030 characters
Status: VERIFIED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 02:10 EST by Liu Yang CLA
Modified: 2003-03-11 19:39 EST (History)
2 users (show)

See Also:


Attachments
Screen Shot (205.15 KB, application/x-zip-compressed)
2003-02-27 23:58 EST, Liu Yang CLA
no flags Details
Log file showing stack trace when auto-detecting JARs (6.95 KB, text/plain)
2003-03-04 16:01 EST, John Arthorne CLA
no flags Details
Error we got using the tool jar (373 bytes, application/octet-stream)
2003-03-05 13:10 EST, Olivier Thomann CLA
no flags Details
jar1.jpg (command result in win2000) (44.46 KB, image/pjpeg)
2003-03-10 01:31 EST, Liu Yang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liu Yang CLA 2003-02-27 02:10:15 EST
Language: Simplified Chinese
OS: Windows 2000	
Eclipse Build: 200302061700 Stable Build (M5)
JRE version: JRE 1.4.0 IBM build cxia32140-20020917a (JIT enabled:jitc)

<<Summary>>
    Can't set jre in a path contain GB18030 character.

<<Re-produce steps>>
    1. Launch Eclipse.
    2. Click menu: Window -> Preference.
    3. Click: Java ->Installed JRE.
    4. Click Add button a "Add JRE" window shows up.
    5. Input a JRE name.
    6. Input a JRE home directory that path contain GB18030 character.
       (refer to jre1.jpg)
    7. Click OK.
    8. Check on the new JRE, and click OK.
    9. Eclipse warn can not find class.(refer to jre2.jpg)

<<Expected Result>>
    It runs correctly

<<Execution Result>>
    Build error.

<<Comments>>  
    1. I can run it with GB2312 character.
    2. I have change the Fonts for workbench and system to GB18030 character.
Comment 1 Liu Yang CLA 2003-02-27 23:58:40 EST
Created attachment 3769 [details]
Screen Shot
Comment 2 John Arthorne CLA 2003-03-04 16:00:17 EST
Confirmed bug in build 2.1 RC1

Notice in the first screen shot that it failed to detect all the necessary 
JARs in this case.  There is an entry in the log file that looks to be related 
to this.  I will attach that log.

However, even when I add all the necessary JARs manually, it still fails to 
compile anything.

I have a GB18030-enabled machine available for testing this.
Comment 3 John Arthorne CLA 2003-03-04 16:01:17 EST
Created attachment 3835 [details]
Log file showing stack trace when auto-detecting JARs
Comment 4 Philipe Mulet CLA 2003-03-04 17:51:33 EST
Olivier - please investigate using John's machine
Comment 5 John Arthorne CLA 2003-03-05 10:44:51 EST
I have entered a separate bug for the failure to auto-detect libraries. See bug
33844.
Comment 6 Olivier Thomann CLA 2003-03-05 11:42:12 EST
The problem is that the java.util.zip library cannot open a file with a name 
that contains GB18030 characters. I put a breakpoint in the ZipFile opening and 
we got it trying to find out if "java" is a package. It failed and then of 
course nothing can be compile properly because java.lang.Object is not found.
With John, we tried to use the jar utility on the command line and it could not 
open the file.
Could you please confirm on your machine that the command "jar 
tvf ............../core.jar" doesn't work? Specify the right name on the 
command line.

Thanks.
Comment 7 Olivier Thomann CLA 2003-03-05 13:10:26 EST
Created attachment 3857 [details]
Error we got using the tool jar

This is the error message we got using the tool. I put it in a zip file on the
chinese encoding machine. Hopefully you will be able to read it. Do you get the
same kind of errors?
Comment 8 Liu Yang CLA 2003-03-07 06:49:34 EST
1. Translate the error message: "file name, directory name or driver lable 
syntax error".
2. I notice in your error file that you are in Traditional Chinese DBCS, not 
Simplified Chinese GB18030.
Comment 9 Olivier Thomann CLA 2003-03-07 08:50:17 EST
Could you please tell me if the jar tool works for you on your machine? We 
believe the java.util.zip package is boggus to read a file name that contains 
GB18030 characters.
Comment 10 Olivier Thomann CLA 2003-03-09 23:13:50 EST
Could you please try to read a zip file using a path that contains GB18030
characters? We believe that the java.util.zip package has some bugs with these
paths. We need a confirmation from you.
Thanks.
Comment 11 Liu Yang CLA 2003-03-10 01:23:34 EST
We have executed the command in Windows (as is shown in the attachment below).  
The result is nearly the same as before: "File name, directory name or driver 
label syntax error". 

If the directory name only contains GB2312 character, it runs correctly.

I also tried this command in linux (Redhat 8), it runs correctly.

btw: the GB18030 code we use to verify is 8139ee39, whose unicode is 3400.
Comment 12 Liu Yang CLA 2003-03-10 01:31:14 EST
Created attachment 3937 [details]
jar1.jpg (command result in win2000)
Comment 13 Olivier Thomann CLA 2003-03-10 08:36:19 EST
Then it is a bug in the library and we cannot fix it.
Comment 14 Olivier Thomann CLA 2003-03-10 11:16:00 EST
Could you please confirm that the original problem cannot be reproduced on Linux?
It looks like this is a bug in the Windows library code.
Comment 15 Liu Yang CLA 2003-03-10 19:20:57 EST
Yes, I can confirm that this jar command runs correctly in redhat 8 platform.
Comment 16 Olivier Thomann CLA 2003-03-10 20:32:21 EST
I meant that the steps to reproduce doesn't show the problem on a Redhat
platform. If the jar command works fine for Linux, then the problem should not
occur on Linux. Could you please confirm that you can set a JRE in a path that
contains GB18030 characters on Linux?
The bug seems to be only in the Windows zip support.
Comment 17 Liu Yang CLA 2003-03-10 20:47:42 EST
I can set a JRE in a path that contains GB18030 characters on Linux. And I can 
create and run a project successfully with this JRE.
The environment is Redhat 8, Motif RC1 build.
Comment 18 Olivier Thomann CLA 2003-03-11 08:29:15 EST
The problem is that the bug is located in the zip library on Windows. This is 
not an Eclipse bug as Eclipse is using the java class libraries. I think you 
should enter a problem report against the JRE you are using. The problem is 
located in the java.util.zip.ZipFile class when creating a zip file with a path 
that contains GB18030 characters.
Ok to close?
Comment 19 Liu Yang CLA 2003-03-11 08:49:14 EST
accept, this is not a eclipse bug.

please change the resultion to wontfix.
Comment 20 Olivier Thomann CLA 2003-03-11 08:55:58 EST
Closed.
Comment 21 Liu Yang CLA 2003-03-11 19:39:31 EST
Verified