[1/2] mlang: Add implementation of fnIMLangFontLink_GetCharCodePages
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Aug 2 22:00:28 CDT 2008
"Vitaly Perov" <vitperov at etersoft.ru> wrote:
> @@ -1855,8 +1855,56 @@ static HRESULT WINAPI fnIMLangFontLink_GetCharCodePages(
> WCHAR chSrc,
> DWORD* pdwCodePages)
> {
> - FIXME("\n");
> - return E_NOTIMPL;
> + /* codepages, supported by Windows */
> + static const unsigned int processCP[] = {1250, 1251, 1252, 1253, 1254, 1255,
> + 1256, 1257, 1258, 874, 932, 936, 949, 950, 0};
It doesn't really matter what code pages Windows supports, it does
matter though what code pages are valid. You need to use Win32 APIs
EnumSystemCodePages/GetCPInfo/MultiByteToWideChar instead of accessing
Wine internals directly.
--
Dmitry.
More information about the wine-devel
mailing list