https://bugs.winehq.org/show_bug.cgi?id=42736
--- Comment #5 from Gijs Vermeulen acescopezz@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/e7f9b562b9da5aa1fbe369f9e5... Can you confirm?