Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 271587 - DBCS3.5 <Problem during deletion of surrogate characters in eclipse editor(Linux).>
Summary: DBCS3.5 <Problem during deletion of surrogate characters in eclipse editor(Li...
Status: RESOLVED DUPLICATE of bug 65899
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 05:10 EDT by Harendra CLA
Modified: 2010-04-05 07:52 EDT (History)
8 users (show)

See Also:


Attachments
Screenshot of the bug. (86.65 KB, image/jpeg)
2009-04-08 05:12 EDT, Harendra CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harendra CLA 2009-04-08 05:10:05 EDT
Build ID: I2009401-1325

Steps To Reproduce:
Step 1: Create a Java project.
Step 2: Add a class in the project and create the main method.
Step 3: Inside the main method add string sk = "any surrogate characters".( In this step first type String sk=""; and paste surrogate characters between the quotes.)
Step 4: Press backspace from the current position.
Step 5: The whole line will disappear.


More information:
Bug Description: In the Eclipse editor if you enter surrogate characters and try to delete the character using either backspace or
delete key the whole line containing such surrogate characters gets deleted.
Example of surrogate characters:&#131072;&#195101;&#131072;&#131073;&#131074;&#131075;&#131076;&#173780;&#173781;&#173782;&#131083;&#172432;&#173746;

OS: Redhat Enterprise Linux 5.3, Japanese locale(UTF-8)
JDK: JRE 1.6.0 IBM Linux build pxi3260sr4-20090219_01(SR4)
Comment 1 Harendra CLA 2009-04-08 05:12:30 EDT
Created attachment 131249 [details]
Screenshot of the bug.

Screenshot of the bug.
Comment 2 Dani Megert CLA 2009-04-08 10:01:05 EDT
Looks a bug in StyledText.
Comment 3 Felipe Heidrich CLA 2009-04-08 10:12:08 EDT
Surrogate are not supported by Eclipse.
See Bug 65899 and Bug 69814
Comment 4 Felipe Heidrich CLA 2009-05-28 17:20:11 EDT
same text encoded as java literal:
"\uD840\uDC00\uD87E\uDE1D\uD840\uDC00\uD840\uDC01\uD840\uDC02\uD840\uDC03\uD840\uDC04\uD869\uDED4\uD869\uDED5\uD869\uDED6\uD840\uDC0B\uD868\uDD90\uD869\uDEB2"

On windows, two backspaces are needed to delete one surrogate pair (see bug 69814).
Comment 5 Felipe Heidrich CLA 2009-05-28 17:31:44 EDT
I decide to use bug 65899 as generic request to support surrogetes on linux-gtk.
closing this as duplicate.

*** This bug has been marked as a duplicate of bug 65899 ***
Comment 6 Kentaroh Noji CLA 2010-04-02 03:11:11 EDT
The same symptom happens in Eclipse 3.6 M6 for Solaris 10.4 and Mac OS X 10.6.
Comment 7 Harendra CLA 2010-04-02 05:11:06 EDT
This happens for eclipse 3.6 in Redhat Enterprise Linux 5.4 and Ubuntu linux 9.04.
Comment 8 Paul Webster CLA 2010-04-05 07:52:57 EDT
(In reply to comment #6)
> The same symptom happens in Eclipse 3.6 M6 for Solaris 10.4 and Mac OS X 10.6.

Hi  Kentaroh Noji, please comment on bug 65899.

PW