Closed Bug 199685 Opened 21 years ago Closed 8 years ago

AIX: Preedit string deleted when arrow keys are pressed

Categories

(Core :: Widget: Gtk, defect)

Other
AIX
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: pkwarren, Unassigned)

References

Details

(Keywords: inputmethod)

Attachments

(2 files)

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.
Attached file 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
Attached patch Patch v1Splinter Review
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.
Attachment #118944 - Flags: superreview?(blizzard)
Attachment #118944 - Flags: review?(katakai)
Blocks: 199964
Attachment #118944 - Flags: review?(katakai) → review+
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
Attachment #118944 - Flags: superreview?(blizzard)
QA Contact: amyy → i18n
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
Closed: 8 years ago
Component: Internationalization → Widget: Gtk
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: