Bug 86036

Summary: [StyledText] Russian Text not wrapping correctly
Product: [Eclipse Project] Platform Reporter: Benjamin Pasero <bpasero>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 Keywords: ui
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Image showing Russian not wrapping correctly none

Description Benjamin Pasero CLA 2005-02-21 16:37:52 EST
Using the following Snippet, the russian word is wrapped inside, and not after
the space. Using the english word, it is working with a wrap after the space:

public class Main {
  public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());

    StyledText st = new StyledText(shell, SWT.MULTI | SWT.WRAP);

    for (int a = 0; a < 100; a++)
      st.append("&#1050;&#1086;&#1089;&#1084;&#1086;&#1092;&#1080;&#1079;&#1080;&#1082;&#1072; "); // using st.append("Astrophysics "); is working

    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
  }
}

Ben
Comment 1 Benjamin Pasero CLA 2005-02-21 16:39:57 EST
Hm ok, seems that I am not able to insert russian glyphs into Bugzilla. The
snippet is online at http://rssowl.org/dl/Main.java

Ben
Comment 2 Florian Priester CLA 2005-02-22 05:50:40 EST
WORKSFORME using SWT v3123.

BTW, to keep Bugzilla happy, the string can also be written this way:
"\u041A\u043E\u0441\u043C\u043E\u0444\u0438\u0437\u0438\u043A\u0430 "
Comment 3 Felipe Heidrich CLA 2005-02-22 11:28:04 EST
Works for me too.
Benjamin, do you still have this problem (with v3123) ?
Comment 4 Benjamin Pasero CLA 2005-02-22 13:33:49 EST
I am able to reproduce this problem using latest SWT integration built. See the
attached screenshot how it looks on my system (Windows XP, Service Pack 1 (!)).

Ben
Comment 5 Benjamin Pasero CLA 2005-02-22 13:34:21 EST
Created attachment 18198 [details]
Image showing Russian not wrapping correctly
Comment 6 Benjamin Pasero CLA 2005-03-20 04:57:26 EST
As I thought, this problem seems to be Service Pack related. The user that has
told me about the problem just updated to Service Pack 2 and does not longer see
it. I am still seeing it, since I am using Service Pack 1.

Ben
Comment 7 Felipe Heidrich CLA 2005-06-14 12:56:20 EDT
Bug in Windows it seems, closing.