| Summary: | MAC Copy DBCS using HTMLTransfer will be shown as messy code. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Zhong Sen Qin <zsqin> | ||||||||||
| Component: | SWT | Assignee: | Lakshmi P Shanmugam <lshanmug> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | kleind, lshanmug, mukund, pwebster, Silenio_Quarti | ||||||||||
| Version: | 3.6.1 | Flags: | Silenio_Quarti:
review+
|
||||||||||
| Target Milestone: | 3.7.1 | ||||||||||||
| Hardware: | Macintosh | ||||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Zhong Sen Qin
Created attachment 197217 [details]
source codes show the defect.
Created attachment 197218 [details]
result on mac
Looks like Bug 330122. Its fixed in 3.6.2 and 3.7. Please try with 3.6.2 build. *** This bug has been marked as a duplicate of bug 330122 *** Created attachment 197558 [details]
tested with 3.6.2 and 3.7RC3, still has this issue.
Tested with 3.6.2 and 3.7RC3, still has this issue. So reopen it. Thanks. Can this be fixed in 3.7.1? Lakshmi, please investigate. I had a quick look in HTMLTransfer is using system encoding which is probably MacRomman. We need to see if kCFStringEncodingUnicode or kCFStringEncodingUTF8 would work. Created attachment 198382 [details]
patch against 3.7 HEAD, same applies to R3_6_maintenance branch
Modified the encoding to OS.kCFStringEncodingUTF8 to fix the problem. I'm unable to test it correctly by pasting in TextEdit. But, I have tested the fix with the SWT ClipboardExample and Mail app and it works fine.
Thx for the patch. will let u know the results once we complete testing. the patch here works well against our 362 SWT .Tested and verified. Hi Silenio, should I commit this fix for 3.7.1 in CVS or git? 3.7.x and 3.8 development is done on GIT. Thanks Silenio! Fixed in R3_7_maintenance branch. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?h=R3_7_maintenance&id=8f3cbbc468224fdac27e164d00bbec0c8a65bfcc Lakshmi, have you released the patch to master (3.8 branch)? I do not see it there. (In reply to comment #14) > Lakshmi, have you released the patch to master (3.8 branch)? I do not see it > there. No, I have released the patch only to 3.7 branch because we are not building Carbon in 3.8. Please let me know if I have to release it to 3.8 branch too. |