Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343939 - DBCS3.7 DBCS characters are corrupted in Files
Summary: DBCS3.7 DBCS characters are corrupted in Files
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.3 RC2   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
: 342569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-27 05:52 EDT by Kentaroh Noji CLA
Modified: 2011-05-23 08:58 EDT (History)
5 users (show)

See Also:


Attachments
Screen capture of the chracter corruption (70.69 KB, image/gif)
2011-05-10 02:56 EDT, Kentaroh Noji CLA
no flags Details
Good result with Linux RSE server (46.93 KB, image/gif)
2011-05-11 02:33 EDT, Kentaroh Noji CLA
no flags Details
updated dstore_core.jar with change for windows server to assume UTF8 (174.30 KB, application/octet-stream)
2011-05-11 09:19 EDT, David McKnight CLA
no flags Details
patch to assume utf8 encoding on windows server (2.12 KB, patch)
2011-05-11 09:22 EDT, David McKnight CLA
no flags Details | Diff
updated patch to also assume utf8 on windows server when receiving (3.65 KB, patch)
2011-05-11 09:35 EDT, David McKnight CLA
no flags Details | Diff
updated dstore_core.jar (174.33 KB, application/octet-stream)
2011-05-11 09:36 EDT, David McKnight CLA
no flags Details
Good result with the patch (screen capture) (45.03 KB, image/gif)
2011-05-11 20:43 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 Kentaroh Noji CLA 2011-04-27 05:52:55 EDT
Build Identifier: I20110412-2200

DBCS file names are placed in remote system. When connecting the remote server from Eclipse, the DBCS files in remote server are corrupted. The code page information of remote system property shows system default code page "MS932". As MS932 is Japanese Windows code page, the connection property may be good. I'm not sure Windows' rseserver handles DBCS file names.  

Configuration: 
RSE: 3.3M6

RSEServer: 
OS - Window XP SP3 32Bit, Japanese environment
JDK - J2RE 1.5.0 IBM Windows 32 build pwi32dev-20080315 (SR7)

Eclipse/RSE:
OS - Windows 7 SP1 64Bit, Japanese environment
JDK: java full version "JRE 1.6.0 IBM Windows AMD 64 buildpwa6460sr9fp1-20110208_03 (SR9 FP1)"
Version: 3.7.0, Build id: I20110412-1532
Version 4.1.0, Build id: I20110412-2200

Reproducible: Always

Steps to Reproduce:
1. Start rseserver (daemon.bat) in windows XP. 
2. Open "Remote System Explorer". Window > Open perspective > Remote System Explorer
3. In remote System view, open the context menu, New > Connection.. > Windows
4. Enter hostname, connection name and description, then finish
5. Open "Files".
Comment 1 Kentaroh Noji CLA 2011-05-10 02:56:02 EDT
Created attachment 195175 [details]
Screen capture of the chracter corruption

Here is a screen capture. I'm sorry that I forgot screen capture...
Comment 2 David McKnight CLA 2011-05-10 08:49:33 EDT
The Windows RSE server is rarely used.  Could you see if this is an issue for something more common like the dstore linux RSE sever?
Comment 3 Kentaroh Noji CLA 2011-05-11 02:32:54 EDT
> Could you see if this is an issue for
> something more common like the dstore linux RSE sever?

The problem does not happen with dstore lunux server. It looks that this problem is caused by Windows RSE server only.
Comment 4 Kentaroh Noji CLA 2011-05-11 02:33:46 EDT
Created attachment 195300 [details]
Good result with Linux RSE server
Comment 5 David McKnight CLA 2011-05-11 09:19:27 EDT
Created attachment 195341 [details]
updated dstore_core.jar with change for windows server to assume UTF8

Could you try this on windows using the attached jar?
Comment 6 David McKnight CLA 2011-05-11 09:22:36 EDT
Created attachment 195342 [details]
patch to assume utf8 encoding on windows server
Comment 7 David McKnight CLA 2011-05-11 09:35:07 EDT
Created attachment 195346 [details]
updated patch to also assume utf8 on windows server when receiving
Comment 8 David McKnight CLA 2011-05-11 09:36:11 EDT
Created attachment 195347 [details]
updated dstore_core.jar

Please try this updated jar instead of the one I originally attached.
Comment 9 David McKnight CLA 2011-05-11 09:39:52 EDT
Since the change works for me, I've committed it to cvs.  Please indicate whether this needs to be backported (since this is Windows server only, I'm not sure it's such a big deal).
Comment 10 Kentaroh Noji CLA 2011-05-11 20:41:58 EDT
(In reply to comment #7)
> Created attachment 195346 [details]
> updated patch to also assume utf8 on windows server when receiving

I verified that the patch worked fine for me.
Comment 11 Kentaroh Noji CLA 2011-05-11 20:43:59 EDT
Created attachment 195450 [details]
Good result with the patch (screen capture)
Comment 12 David McKnight CLA 2011-05-12 12:42:28 EDT
*** Bug 342569 has been marked as a duplicate of this bug. ***
Comment 13 Martin Oberhuber CLA 2011-05-23 08:58:50 EDT
This change didn't make M7 but was released for RC2.