| Summary: | DBCS4.2: Can not choose Hanzi on Text editor with AIX T/S-Chinese IME | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kentaroh Noji <kennoji> | ||||||||||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||
| Severity: | major | ||||||||||||||
| Priority: | P3 | CC: | camle, daniel_megert, gheorghe, harendra, Silenio_Quarti | ||||||||||||
| Version: | 4.2 | ||||||||||||||
| Target Milestone: | 4.3 M3 | ||||||||||||||
| Hardware: | Other | ||||||||||||||
| OS: | AIX | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Kentaroh Noji
Created attachment 217006 [details]
Screen capture 1
Created attachment 217007 [details]
Screen capture 2
Created attachment 217008 [details]
Screen capture 3
Created attachment 217009 [details]
Screen capture 1
This looks like an SWT problem. Kentaroh, can you please try with - in a simple text entry field in Eclipse - an SWT StyledText snippet, e.g. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet163.java Also, are you using GTK or Motif (please set the Platform fields in this bug report)? (In reply to comment #5) > This looks like an SWT problem. > > Kentaroh, can you please try with > - in a simple text entry field in Eclipse > - an SWT StyledText snippet, e.g. > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet163.java Yes, I could reproduce the same problem with Snippet163.java. Also, I changed the platform from others to AIX GTK. We don't an AIX machine setup with Chinese locales. Would it be able to arrange for a temporary account on your machine for us to try it out? Created attachment 217445 [details]
Potential patch
Here is a patch for this bug. We left Eclipse open on the VNC machine. We applied this patch to the loaded code and ran an inner Eclipse for you to test.
Could you please give the inner Eclipse a try and see if this patch fixes the problem for you? Thanks!
I have verified that the text editor with the patch successfully accepted Chinese Hanzi characters, and looks great. Patch released to master. This caused bug#391459. These changes have been removed because of bug#391459. This problem does not happen on Linux (RedHat 6, Fedora 15). The problem happens on AIX because the IME window is taking focus away from the text widget. We need to find a different fix for this. We are getting VNCSERVER installed on our AIX box in order to work on this problem. The IME does not work properly when accessing the machine by SSH. This patch fix the problem using a different strategy. It only calls filterKey() for unfocused widgets when the active shell is null. This is the case when the IME window steals focus away from the shell. I have tested this on our AIX box and everything seems to work fine. Kentaroh Noji, please could you retest this new fix? Thanks! http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=26bd6aad3363f6d1b254085e150b94f64d1b104f (In reply to comment #14) > > Kentaroh Noji, please could you retest this new fix? Thanks! Sure, I will verify this when the next build contains the fix. Thanks. |