[resend] gdi32/tests: Add tests for GdiGetCodePage.

Dmitry Timoshkov dmitry at codeweavers.com
Tue Jun 24 09:01:44 CDT 2008


"Huang, Zhangrong" <hzhrong at gmail.com> wrote:

> I mean fix GdiGetCodePage like:
> 
> if (charset == ANSI_CHARSET || charset == DEFAULT_CHARSET)
> {
>     cp = GetACP();
>     if (cp == 936 || cp == 950 || cp == .....)
>          return cp;
> 
>    else (TranslateCharsetInfo(....))
>         ....
> }
> 
> I didn't see any better way.

That definitely will break any charset specified in the font (like
symbol, russian, etc.) in CJK locale. Most likely what happens is
a font linking/substituting for ANSI_CHARSET.

-- 
Dmitry.



More information about the wine-devel mailing list