Bug 86036 - [StyledText] Russian Text not wrapping correctly
Summary: [StyledText] Russian Text not wrapping correctly
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2005-02-21 16:37 EST by Benjamin Pasero CLA
Modified: 2005-06-14 12:56 EDT (History)
0 users

See Also:


Attachments
Image showing Russian not wrapping correctly (29.15 KB, image/gif)
2005-02-22 13:34 EST, Benjamin Pasero CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.