locales, unicode and ansi with msvcrt (bug 8022)

Dmitry Timoshkov dmitry at codeweavers.com
Wed Apr 11 23:39:57 CDT 2007

"Ann & Jason Edmeades" <us at edmeades.me.uk> wrote:

> Bug 8022 (http://bugs.winehq.org/show_bug.cgi?id=8022) has highlighted
> something interesting which has me puzzled...
> Basically lets take xcopy as an example command line application. It issues
> messages to the screen using MSVCRT's wprintf(L"Unicode string") type
> function
> Wprintf -> vsnwprintf and builds a Unicode string to output.
> This ends up calling fwrite -> _write -> WriteFile -> WriteConsoleA

Apparently you need to use appropriate console output APIs directly (that
take into account the console input/output code page) instead of using


More information about the wine-devel mailing list