[Bug 26281] regedit: Doesn't export decent newline in Unicode (NT5) Format.

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Mar 2 08:48:47 CST 2011


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

--- Comment #1 from Sagawa <sagawa.aki+winebugs at gmail.com> 2011-03-02 08:48:47 CST ---
Created an attachment (id=33504)
 --> (http://bugs.winehq.org/attachment.cgi?id=33504)
proposal patch

The cause of this behavior is exporting a file in text mode. As you probably
know, in DOS/Windows text mode, writing "\n" is converted to "\r\n". For such
occasions, outputting WCHAR binary "00 0a" with fwrite() changes into "00 0d
0a" on the file. Then the file has broken format.

I attach a proposal patch. The patch makes a file opened in binary mode and
written WCHAR '\r' explicitly.

-- 
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