Community
Participate
Working Groups
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("Космофизика "); // using st.append("Astrophysics "); is working shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } Ben
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
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 "
Works for me too. Benjamin, do you still have this problem (with v3123) ?
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
Created attachment 18198 [details] Image showing Russian not wrapping correctly
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
Bug in Windows it seems, closing.