gdi32: Fix for capella problem with codepages in symbol fonts

Dmitry Timoshkov dmitry at codeweavers.com
Sun Oct 5 00:47:35 CDT 2008


"Stefan Ziel" <stefan.ziel at terra.com.br> wrote:

> Ignore characterset bit for symbol fonts

> -    if(!TranslateCharsetInfo((DWORD*)(INT_PTR)lf.lfCharSet, &csi, TCI_SRCCHARSET)) {
> +    if (lf.lfCharSet == SYMBOL_CHARSET){
> +        /* codepage for symbol is not definied -> ignore it */
> +        csi.fs.fsCsb[0] = 0;

This patch is obviously wrong, TranslateCharsetInfo does handle
SYMBOL_CHARSET, and code page for symbol *is* defined. In any
case the first thing to do is write a test case.

-- 
Dmitry.



More information about the wine-devel mailing list