kernel32: MultiByteToWideChar: MB_USEGLYPHCHARS fix

Dmitry Timoshkov dmitry at codeweavers.com
Mon Mar 12 22:04:39 CDT 2007


"Robert Shearman" <rob at codeweavers.com> wrote:

> Andrew O. Shadoura wrote:
>>          break;
>>      }
>>
>> +    if (flags & MB_USEGLYPHCHARS) {
>> +        for (i=0; i!=dstlen; i++)
>> +            if (dst[i]<0x20) dst[i]=glyph_xlat[dst[i]];
>> +    }
>> +
>>   
> 
> I think you need to take into account the codepage when doing this 
> translation.

Also probably this code needs to go to libs/wine/mbtowc.c, and the test
at least for 1252 and say 1251 code pages wouldn't hurt.

-- 
Dmitry.



More information about the wine-devel mailing list