527Re: win2k IME, multibyte/width characters, etc. (patch)
- Sep 23 12:31 AMOn Sun, Sep 23, 2001 at 04:11:44PM +0900, Muraoka Taro wrote:
> > I'll attach the un-reversed patch. Is it working for you? Also,This code is for the IME2000, which is in Win2K and up. We must use
> > does pasting work for you in UTF-8 mode? (or, for reference, CP932?)
> You use ImmGetCompositionStringW().
> But ImmGetCompositionStringW() is only available for NT/2K, isn't it?.
> How about 9x/Me?
the wide version; the ANSI version dumps question marks. Pretty useless.
This code should never be touched if a user isn't using the IME.
In theory, WM_IME_CHAR should be used for this; it's documented as being
used for non-Unicode windows to retrieve wide characters from the IME.
But ... it only gives question marks. ?! Since we trap WM_IME_COMPOSITION
and don't pass completions to DefWindowProc, WM_IME_CHAR is suppressed.
Oh, and the iconv stuff hasn't been tested, but vim only uses latin1,
Unicode or DBCS internally (according to mbyte.c comments), so it'll never
be used by this code.
- << Previous post in topic Next post in topic >>