Community
Participate
Working Groups
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:𠀀𪘀𠀀𠀁𠀂𠀃𠀄𪛔𪛕𪛖𠀋𪆐𪚲 OS: Redhat Enterprise Linux 5.3, Japanese locale(UTF-8) JDK: JRE 1.6.0 IBM Linux build pxi3260sr4-20090219_01(SR4)
Created attachment 131249 [details] Screenshot of the bug. Screenshot of the bug.
Looks a bug in StyledText.
Surrogate are not supported by Eclipse. See Bug 65899 and Bug 69814
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).
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 ***
The same symptom happens in Eclipse 3.6 M6 for Solaris 10.4 and Mac OS X 10.6.
This happens for eclipse 3.6 in Redhat Enterprise Linux 5.4 and Ubuntu linux 9.04.
(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