Bug 380114 - [reorg] Copy mangles refactored text when encoding changes
Summary: [reorg] Copy mangles refactored text when encoding changes
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on: 67606
Blocks:
  Show dependency tree
 
Reported: 2012-05-21 05:10 EDT by Nicolas Bros CLA
Modified: 2023-07-12 09:41 EDT (History)
3 users (show)

See Also:


Attachments
copy source (1.82 KB, text/plain)
2012-05-21 05:11 EDT, Nicolas Bros CLA
no flags Details
copy target (1.82 KB, text/plain)
2012-05-21 05:12 EDT, Nicolas Bros CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2012-05-21 05:10:45 EDT
I copy pasted a Java file (with UTF-8 characters in comments) from a project with a UTF-8 encoding into a project with the Windows default Cp1252 encoding.
This results in a wrong package declaration:
  packagorg.eclipse.emf.facet.custom.teststs;
Comment 1 Nicolas Bros CLA 2012-05-21 05:11:52 EDT
Created attachment 215938 [details]
copy source

here is the copy source
Comment 2 Nicolas Bros CLA 2012-05-21 05:12:19 EDT
Created attachment 215939 [details]
copy target

Here is the copy target
Comment 3 Dani Megert CLA 2012-05-21 08:23:19 EDT

*** This bug has been marked as a duplicate of bug 54048 ***
Comment 4 Markus Keller CLA 2012-05-22 05:49:57 EDT
Reopening, we will have to check this scenario after bug 67606 is fixed.
Comment 5 Eclipse Genie CLA 2020-10-07 01:14:44 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2022-10-10 05:47:00 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Maximilan Wittmer CLA 2023-07-12 09:41:03 EDT
I have created a pull request creating a unit-test for this bug.

https://github.com/eclipse-platform/eclipse.platform/pull/572

I will now work on fixing it