https://bugs.winehq.org/show_bug.cgi?id=42736
--- Comment #3 from Zhang Boyang zhangboyang.id@gmail.com --- 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.