fix bug in GetCPInfo
Vitaly Lipatov
lav at altlinux.ru
Thu Jul 1 17:19:41 CDT 2004
On Thursday 01 July 2004 23:09, Uwe Bonnes wrote:
> >>>>> "Vitaly" == Vitaly Lipatov <lav at altlinux.ru> writes:
>
> Vitaly> Bug: When call GetCPInfo with CP_ACP for example,
> in returned Vitaly> structure field CodePage filled with
> CP_ACP constant, not real Vitaly> codepage of current ACP. The
> attached patch fix this bug. I Vitaly> have compared behavior
> of this functions with Win2003.
>
> This implies, that you have written a test. Please provide the
> test for our test suite.
test is attached.
I see in output (for ru_RU.KOI8-R locale in Linux):
GetOEMCP = 866
isValidCodePage = 1
GetACP = 1251
isValidCodePage = 1
GetCPInfo for CP_ACP (OK=1) MaxCharSize=1
GetCPInfoEx for CP_ACP (OK=1) MaxCharSize=1
CodePage=0 CodePageName=ANSI Cyrillic
isValidCodePage = 0
CodePage is filled by zero. You can compare with Win2003.
--
Lav
Vitaly Lipatov
Saint-Petersburg
GNU! ALT Linux Team! LaTeX! LyX!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getcpinfo-test.c
Type: text/x-csrc
Size: 1346 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040702/e20f3985/getcpinfo-test.c
More information about the wine-devel
mailing list