Closed Bug 138152 Opened 24 years ago Closed 24 years ago

Bad IME characters handling

Categories

(Core :: Internationalization, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: kolar, Assigned: tetsuroy)

References

()

Details

(Keywords: intl)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.9+) Gecko/20020414 BuildID: 2002041408 There are Input Method Editors in east-asian versions of Windows. It seems that Mozilla uses its own input method system, because it is not fully compatible with Window's IME. When application on control receives WM_IME_CHAR or two WM_CHARs, it should be taken as double-byte character. This behaviour is common for all Win32 applications but Mozilla does nothing. Reproducible: Always Steps to Reproduce: 1. Set Korean keyboard as active (Hangul) 2. Write c, i and d characters. Special korean character appears 3. This character has code 0xc3b2 and it is there just for the reference. 4. When you send WM_IME_CHAR message to the (for example address bar) control, like: PostMessage(hWnd, WM_IME_CHAR, 0xc3b2, 1), addressbar doesn't show these characters. Post this message to Notepad, Write or any other app and you will se what the application should do. 5. You can also send two WM_CHAR messages (one with HIBYTE(character), other one with LOBYTE(character) instead of one WM_IME_CHAR message: PostMessage(hWnd, WM_CHAR, HIBYTE(0xc3b2), 1); PostMessage(hWnd, WM_CHAR, LOBYTE(0xc3b2), 1); 6. HIBYTE and LOBYTE are VC++ macros Actual Results: control doesn't react Expected Results: control should write posted character the same way as if it was entered by the keyboard
moz responds to WM_IME_COMPOSITION and other WM_IME_XXXX messages instead of WM_IME_CHAR so that we can support the "Inline IME". http://lxr.mozilla.org/seamonkey/source/widget/src/windows/nsWindow.cpp#3896 Notepad supports "over the line IME"; where as WordPad supports the Inline IME (similar to mozilla). Lubor: 1) could you provide us with little more explainations as to why we need to react to WM_IME_CHAR msg? 2) can you try your PostMessage() to WordPad/Word?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: intl
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Marking WFM. Reporter please reopen if you disagree and provide more explainations.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.