[1/2] [try 3] mlang: Add implementation of fnIMLangFontLink_GetCharCodePages

Vitaly Perov vitperov at etersoft.ru
Thu Nov 27 11:00:05 CST 2008


Changes since last send:
  - Used WINAPI function instead of accessing Wine internal code page  
structures.

"Dmitry Timoshkov" <dmitry at codeweavers.com> wrote:
>It *is* possible to use EnumSystemCodePages

Yes, it is possible. But :
1) this function call wine_cp_enum_table, then converts the result (codepage) 
to the string. So we need convert the result back to the number.
2) It pass code pages to the callback-function. The callback function uses 
only one argument - string with codepage number. So it's very difficult to 
pass this value back to the GetCharCodePages function.

So, I think the best decision is to use internal function wine_cp_enum_table

-- 
Best wishes,
Vitaly Perov
Russia, Saint-Petersburg. www.etersoft.ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mlang-Add-implementation-of-fnIMLangFontLink_GetCha.patch
Type: text/x-diff
Size: 1495 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081127/31e66e71/attachment.patch 


More information about the wine-patches mailing list