[Bug 8598] msvcrt file IO functions do not handle unicode properly in text mode

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jun 21 04:06:00 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=8598





--- Comment #6 from Colin Finck <mail at 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.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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