User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)
Man, that's a way-too-long subject line. Anyway, here's what's up.
I have a Unicode palette (of the Carbon Component + Cocoa UI variety) that uses
SendTextInputEvent when the component gets user input. So far so good.
Bug reports from a couple of Tiger users woke me up to the fact that I'm getting
paramErr from SendTextInputEvent whenever there's a Unicode input method active.
Regular 'U.S.' (a 'Roman' IM) shows no problems. 'U.S. Extended' (a Unicode IM)
causes this problem. Romaji and other parts of Kotoeri are all 'Japanese' IMs
and thus are OK. Arabic, Thai, and Devanagari are among those I tested, which
caused incorrect behavior, and all of which are Unicode.
A little messing around with gdb/Xcode shows this chain:
- my component
-- SendTextInputEvent
--- SendUnicodeTextAsUnicodeForKeyEvent
---- UpgradeScriptInfoToTextEncoding... returns paramErr
My component is sending the two required parameters to SendTextInputEvent:
kEventParamTextInputSendComponentInstance, and kEventParamTextInputSendText.
I've said it before and I guess I'm saying it again...
"Help me, Deborah Goldsmith!" ;-)