You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2019/04/15 16:26:43 UTC

[Issue 125469] Japanese input not working under Japanese OS: text from IME is never inserted

https://bz.apache.org/ooo/show_bug.cgi?id=125469

--- Comment #3 from Alex Taylor <al...@gmail.com> ---
OK, at a minimum it looks as if the following changes are needed.  [Line
numbers] are from rev 1840571.

main/vcl/os2/source/window/salframe.cxx [2743] (ImplConvertKey):

- Change variable nCharCode from UCHAR to USHORT, and remove cast to UCHAR
ahead of SHORT1FROMMP( aMP2 ).


main/vcl/os2/source/window/salframe.cxx [2707-2715] (ImplGetCharCode):

- Change parameter type of nCharCode from sal_Char to USHORT.
- If high-byte of nCharCode is 0, call 
    return OUString( (sal_Char *)&nCharCode, 1,
gsl_getSystemTextEncoding()).toChar();
- Else declare a 2-byte sal_Char buffer and pass that to OUString as parameter
1, e.g.:
    sal_Char nChars[2];
    nChars[0] = HIBYTE( nCharCode );
    nChars[1] = LOBYTE( nCharCode );
    return OUString( nChars, 2, gsl_getSystemTextEncoding()).toChar();

It's possible that might be sufficient (although, again, I acknowledge that
more might be going on under the hood that I can't see).

-- 
You are receiving this mail because:
You are the assignee for the issue.