Bug 29862 - GB18030:Could not set a GB18030 character as workbench classpath variable.
Summary: GB18030:Could not set a GB18030 character as workbench classpath variable.
Status: RESOLVED WORKSFORME
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 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-21 03:03 EST by Liu Yang CLA
Modified: 2003-01-23 12:53 EST (History)
0 users

See Also:


Attachments
var1.jpg (Screen Cut of the step 6) (104.12 KB, image/pjpeg)
2003-01-21 03:16 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-01-21 03:03:42 EST
OS: Windows2000 Simplified Chinese Version + GB18030 Patch
Eclipse Build: 20020321 Stable Build 

Abstract: Eclipse can't identify that a classpath variable whose name contains 
a GB18030 Character.

Re-Produce Steps:
1.Start Eclipse
2.Click Window->Preferences
3.Preference window show up
4.Select Java->Classpath Variable, then click New Button
5.Input a GB18030 character into name box
6.a warning show up(as is shown in var1.jpg)

Comments:
Before the process,I have changed the Eclipse font to a GB18030 enabled font in 
workbench preference.
I also change the windows display font to GB18030 enabled font.
I can create a folder with the name which contains GB18030 character in Windows 
Explorer.
In the same window,I can input a GB2312 character and then create the classpath 
variable successfully.

------- Additional Comment ------- 
Verify with following test environment: 

Eclipse Build: 20021218 Stable Build (bug occured)
JRE version: J2RE 1.3.1 IBM Windows 32 build cn140-20020902 (JIT enabled: jitc)
Result: A classpath variable name COULD NOT contain a GB18030 character.

Eclipse Build: 20021218 Stable Build (bug disppeared)
JRE version: J2RE 1.4.0 IBM Windows 32 build cn140-20020902 (JIT enabled: jitc)
Result: A classpath variable name COULD contain a GB18030 character.
Comment 1 Liu Yang CLA 2003-01-21 03:16:36 EST
Created attachment 3052 [details]
var1.jpg (Screen Cut of the step 6)
Comment 2 Sonia Dimitrov CLA 2003-01-21 09:58:42 EST
Moving to JDT UI for comment.
Comment 3 Dirk Baeumer CLA 2003-01-23 07:58:52 EST
Martin, I think that we use JDT Core API to validate a Java identifier. If so 
please move on to JDT Core.
Comment 4 Dirk Baeumer CLA 2003-01-23 08:04:49 EST
One additional question for the reporter: have you switch the local for Eclipse 
to GB18030 using the Preferences>Workbench>Editors.
Comment 5 Martin Aeschlimann CLA 2003-01-23 08:30:04 EST
using JCore validator.
moving to jcore
Comment 6 Olivier Thomann CLA 2003-01-23 12:38:29 EST
You have the problem because you use a VM 1.3.x that doesn't support your
encoding (GB8030). Eclipse encoding support works fine if you use a VM that can
support such an encoding.
In bug 29863, I gave you two links that state what encoding is supported by each
VM. 
http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html you will see 
that a 1.3 VM doesn't have the GB18030 encodings charset, whereas at this link 
http://java.sun.com/j2se/1.4/docs/guide/intl/encoding.doc.html, you can check 
that a 1.4 VM has this encoding in its charsets.jar file.

The GB8030 is not a supported encoding for your VM, therefore don't expect
Eclipse to be able to handle it. The best would be a check that the encoding is
supported and a failure should be returned if not.

Comment 7 Philipe Mulet CLA 2003-01-23 12:53:31 EST
Closing