Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 57003

Summary: DBCS:Copy/Paste or input DBCS display incorrectly in project file
Product: [Eclipse Project] Platform Reporter: leading <wswb0922>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: other   
Whiteboard:
Attachments:
Description Flags
show the error page none

Description leading CLA 2004-03-31 22:42:18 EST
OS: windows 2003
Language: Simplfied Chinese /Traditional Chinese
Build level: 200403261517    
JDK Version: IBM JDK 1.4.2 Beta
Test case #:    
Summary: DBCS:Copy/Paste or input DBCS display incorrectly in project file
Description: 
Steps to recreate problem:
1-input some DBCS data in project.file
<<Error>> 
         The DBCS data are displayed as garbage code.
2-Copy some DBCS data from a word file.
3-Paste the DBCS data to a single text file in eclipse project.
<<Error>> 
         The DBCS data are displayed as garbage code.
(pic1.jpg)                    
<<Expected Result>>
         All the DBCS data are properly displayed.
Comment 1 leading CLA 2004-03-31 22:52:27 EST
Created attachment 9079 [details]
show the error page

The DBCS data are displayed as garbage code
Comment 2 Dani Megert CLA 2004-04-01 06:08:16 EST
*** Bug 57004 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2004-04-01 06:08:38 EST
*** Bug 57026 has been marked as a duplicate of this bug. ***
Comment 4 Felipe Heidrich CLA 2004-04-01 13:04:03 EST
Is this a regression  ? Was this scenario working on Eclipse M7 ?

The JavaEditor font does not support Chinese. SWT does not perform font 
substitution or offer font fallback mechanins. You have to go on the 
preference page a select a font that support the language you need.

Comment 5 leading CLA 2004-04-01 20:22:10 EST
We can input DBCS on M7 build by default, but we can not input DBCS on M8 build 
by default. If we change the font to support the chinese language on M8 build, 
and it can properly display. 
If we install M8 build on a chinese platform, it should display chinese 
properly by default. This will be helpful for user and it works well in M7.

Comment 6 Dani Megert CLA 2004-04-02 02:12:15 EST
*** Bug 57026 has been marked as a duplicate of this bug. ***
Comment 7 Felipe Heidrich CLA 2004-04-02 11:49:02 EST
If you run Eclipse M7, go to the preference page->workbench->fonts->Text Font, 
click on 'Restore Defaults', what is the default font for you ?
For me, running on a English Machine, is Courier New-regular 10.
According to Tod Creasey (bug#56915) the Eclipse 3.0 language pack are not 
ready yet. So it can be the problem.
Comment 8 leading CLA 2004-04-03 02:22:27 EST
I run Eclipse M7 on Chinese Machine, default Font is "New-regular 10"; and if I 
click on "Use System Font", font will be "ā€˜vā€˜ĆŒ" which support Chinese System.
If I run Eclipse M8 on Chinese Machine, default Font also is "New-regular 10"; 
and DBCS data can not show properly; Then I click on "Use System Font", and 
DBCS data can show properly.
Comment 9 Felipe Heidrich CLA 2004-04-08 17:56:43 EDT

*** This bug has been marked as a duplicate of 56915 ***
Comment 10 leading CLA 2004-04-09 03:55:59 EDT
This defect also work on the New build WSWB M8-I20040407
Comment 11 Felipe Heidrich CLA 2004-04-12 11:34:45 EDT
WSWB M8-I20040407 ? Which version of Eclipse does WSWB M8-I20040407 use ?

Anyway, I fixed this bug last thrusday, we still don't have a Eclipse 
integration build that contain the fix for this problem. Tomorrow we'll have 
Eclipse build I20040413!
Please, retest the bug with Eclipse I20040413 and update the status of this 
bug.
Comment 12 leading CLA 2004-04-16 04:59:56 EDT
This defect is fixed and verified on wswb-I20040413-200404151406 build.
Comment 13 Felipe Heidrich CLA 2004-04-16 11:24:48 EDT
closing pr.
Comment 14 leading CLA 2004-04-18 21:22:37 EDT
This defect be fixed on the New build wswb-I20040413-200404151406