http://bugs.winehq.org/show_bug.cgi?id=18192
--- Comment #7 from Dmitry Timoshkov dmitry@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.