[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 01:11:44 CDT 2009


--- Comment #7 from Dmitry Timoshkov <dmitry at codeweavers.com>  2009-04-26 01:11:44 ---
(In reply to comment #1)
> * Should I add a specific "Unix codepage" (CP_UNIXCP) item? (the UTF-8 option
> adds a non-standard byte-order mark.) This could even do LF <-> CRLF
> conversion...

Windows notepad doesn't have it, therefore Wine shouldn't either.

> * Should I use IsTextUnicode()? If so, Wine notepad may then suffer from the
> "Bush hid the facts" bug.

Text in Wine notepad is altready in unicode.

> * It could even enumerate all installed codepages (EnumSystemCodepages(), I
> believe), and allow the user to pick any of them. Good idea?

No. See answer #1.

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

> I think WinXP Notepad uses a custom edit control.

No, it doesn't.

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