| Summary: | unicode nonprintable / zero width space completely bricks editors | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Tobi Vollebregt <tobivollebregt> | ||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe, eclipse, mehmet.gurevin, remy.suen | ||||
| Version: | 3.6.1 | ||||||
| Target Milestone: | 3.7 M4 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Tobi Vollebregt
Created attachment 184146 [details]
ArrayIndexOutOfBoundsException that appears in the error log
Details about the character copied from KCharSelect Character: Non-printable U+200B Name: ZERO WIDTH SPACE Annotations and Cross References Notes: commonly abbreviated ZWSP this character is intended for invisible word separation and for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification General Character Properties Block: General Punctuation Unicode category: Other, Format Various Useful Representations UTF-8: 0xE2 0x80 0x8B UTF-16: 0x200B C octal escaped UTF-8: \342\200\213 XML decimal entity: ​ I suspect this was fixed in Bug 308329/Bug 295513 Can you please verify if this problem happens on HEAD ? I see the problem:
public static void main(String[] args) {
Display display = new Display();
TextLayout layout = new TextLayout(display);
layout.setText("a\u200B");
layout.setAscent(20);
layout.setDescent(6);
layout.setSegments(new int[] {0, layout.getText().length()});
layout.getBounds();
}
I tested with the nightly eclipse-SDK-N20101202-2000-linux-gtk; issue still occurs with it. Build id: N20101202-2000 Fixed in HEAD Please verify the fix later this week using M4. Thank you. Verified; works fine in M4. *** Bug 350988 has been marked as a duplicate of this bug. *** *** Bug 358970 has been marked as a duplicate of this bug. *** |