[Bug 18192] Notepad can only save in current locale encoding, should be able to save in unicode

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 26 08:23:34 CDT 2009


--- Comment #8 from Alexander Scott-Johns <alexander.scott.johns+winebug at googlemail.com>  2009-04-26 08:23:33 ---
Created an attachment (id=20727)
 --> (http://bugs.winehq.org/attachment.cgi?id=20727)
text file containing a \0 character

(In reply to comment #7)

>> PS: Wine notepad doesn't like NUL characters (they truncate the file). This
>> is hard to fix.
> Do you have any evidence that \0 doesn't truncate text in Windows notepad?
> That should be easy to test with edit control (since that's what is the real
> editor in notepad).

The attached file is 31 bytes long, and contains (as a C string):

 "Part 1 of 2. {\0} Part 2 of 2.\r\n"

Different editors treat it differently:

WinXP Notepad: \0 character is converted to a space.
Wine Notepad: truncates the file.
Vim: treats \0 properly, displaying it as ^@

>> I think WinXP Notepad uses a custom edit control.
> No, it doesn't.

How does WinXP Notepad open huge files then? Doesn't the edit control have a
64K limit?

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