http://bugs.winehq.org/show_bug.cgi?id=8598
--- Comment #6 from Colin Finck mail@colinfinck.de 2008-06-21 04:05:59 --- Well, I do get correct console output if I run a console application with wprintf and Wine under Ubuntu. Don't ask me where exactly the conversion is done here.
Anyway, this problem affects all kinds of file I/O functions. A prominent example is fwprintf. Try for example the following code:
fp = fopen("test.txt", "w"); fwprintf(fp, L"Test\n"); fclose(fp);
It will correctly convert the "Test" string to ANSI and write it to the file under Windows, but just write the Unicode string into the file under Wine. So not just console apps will be affected by this bug.