Bug 228380 - DBCS3.4: DBCS in cpp files get corrupted when compiled
Summary: DBCS3.4: DBCS in cpp files get corrupted when compiled
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 5.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-23 07:29 EDT by Karim Hamzaoui CLA
Modified: 2020-09-04 15:26 EDT (History)
6 users (show)

See Also:


Attachments
screenshot1 (new cpp project) (23.57 KB, image/gif)
2008-04-23 07:29 EDT, Karim Hamzaoui CLA
no flags Details
screenshot2 (debug mode) (64.90 KB, image/gif)
2008-04-23 07:30 EDT, Karim Hamzaoui CLA
no flags Details
screenshot of the error (61.70 KB, image/gif)
2010-04-09 05:07 EDT, Kentaroh Noji CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karim Hamzaoui CLA 2008-04-23 07:29:40 EDT
Created attachment 97203 [details]
screenshot1 (new cpp project)

Steps to Reproduce:
[Description]
DBCS used in cpp file names gets corrupted when compiled. This seems to also cause the debuger not to be able to link to source file in debug mode.


[Steps]
1- Create a new DBCS "Hello World C++ Project" (See attached screenshot1)
(File > New > C++ Project > Make File Project > Hello World C++ Project)
2- Click "Next" then "Finish" to generate the project
3- Make necessary stept to compile the project
(Ex, in Solaris; change build command to gmake, etc)
4- Notice the corrupted DBCS in compiled cpp file (refer to attached screenshot2)
5- Execute generated binary file and verify that it works fine
6- Run generated binary file in debug mode (Right-click > Debug as > Local C/C++ Application)

[Expected output]
1- After compiling the DBCS hello world cpp file, it is displayed corrupted in project explorer
2- When running generated binary file in debug mode, the debugger fails to link back to source file and displays the error message shown in attached screenshot2

More information:
Reproduced the problem on following platforms so far:
+ SLES 10 SP1
  1.6.0 IBM J9 VM build 2.4
+ Solaris 10 (sparc) 8/07 
   Sun JDK 1.6.0_04-b12
+ Mac OS X 10.5.2
  SDK 1.5.0_13
Comment 1 Karim Hamzaoui CLA 2008-04-23 07:30:32 EDT
Created attachment 97204 [details]
screenshot2 (debug mode)
Comment 2 Karim Hamzaoui CLA 2008-04-23 08:00:04 EDT
Forgot to add build ID:
Build ID: I20080413-0942
Comment 3 Kentaroh Noji CLA 2010-04-09 04:41:33 EDT
Here is update. In eclipse 3.6 with CDT 7, the .cpp file is not corrupted.  However, the debugger gets the same error when the step of the debugger comes the main.  

This symptom still happens in Mac OS X 10.6.1 and RedHat V5.4.

Environment 
--------------------
OS: Mac OS X 10.6.1

JDK: java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) Client VM (build 14.1-b02-90, mixed mode)
Java option to change the encoding to UTF-8: export _JAVA_OPTIONS="-Dfile.encoding=UTF-8"

Locale: ja_JP.UTF-8
--------------------
OS: RedHat Enterprise Linux V5.4
JDK: JRE 1.6.0 IBM Linux build pxi3260sr7-20091215_02 (SR7)

Locale ja_JP.UTF-8
--------------------
Comment 4 Kentaroh Noji CLA 2010-04-09 05:07:02 EDT
Created attachment 164345 [details]
screenshot of the error