When editing the preedit string, if any arrow keys are pressed, Mozilla deletes the preedit string. This makes it impossible to navigate the preedit string.
Created attachment 118785 [details] Log This is a log which gives specific details of what occurs when typing in a preedit string and moving the arrow key. In the last call to the preedit draw callback, XIMText->length is 12, but strlen(XIMText->string.multi_byte) is zero. This causes a call to the Reset() function call in the following location (which deletes the preedit string): http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/widget/src/gtk/nsGtkIMEHelper.cpp&rev=1.47&root=/cvsroot&mark=279-282#266
Created attachment 118944 [details] [diff] [review] Patch v1 Don't reset the preedit string on AIX if composeUniStringLen != preeditLen. Use preeditLen instead of composeUniStringLen when building the feedback array (because composeUniStringLen is zero on AIX). None of these changes should affect other platforms, because one section is #ifdef _AIX, and for all of the other platforms, composeUniStringLen is always equal to preeditLen, so they can be used interchangeably.
Reassigning bugs to new owner. This bug is likely still present on AIX, but no longer an issue with default builds because we now build using GTK1.
Assignee: pkwarren → rupeshkt
Currently, we only support GTK widget for *nix and I've improved a lot of IME handling and the de facto standard of IME on *nix has been changed a couple of times in this decade. Therefore, I'm marking this as INCOMPLETE. If you still have some problem on AIX, please file new bugs with STR and information of your environment.
Assignee: rupeshkt → nobody
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Component: Internationalization → Widget: Gtk
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.