[Bug 42736] scanf doesn' t work as expected when using format string contains non-ascii chars

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 4 15:16:15 CDT 2017


https://bugs.winehq.org/show_bug.cgi?id=42736

--- Comment #5 from Gijs Vermeulen <acescopezz at gmail.com> ---
(In reply to Zhang Boyang from comment #3)
> Hello, I'm not sure whether directly casting '*format' to 'unsigned char' is
> appropriate. It seems that the wide-scanf and plain-scanf shares same code.
> If the code is compiled for wide-scanf, directly casting to 'unsigned char'
> may introduce new bug, e.g. ((unsigned char) L'\xabcd' == L'\xcd') is true.

Should be fixed with:
https://source.winehq.org/git/wine.git/commitdiff/e7f9b562b9da5aa1fbe369f9e57fe63d08cbb743?hp=a392e14243700b4b3c0afe1490c64cb587d8cb1b
Can you confirm?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list