[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 13:05:49 CDT 2009
http://bugs.winehq.org/show_bug.cgi?id=18192
--- Comment #10 from Alexander Scott-Johns <alexander.scott.johns+winebug at googlemail.com> 2009-04-26 13:05:49 ---
(In reply to comment #7)
> > * 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.
I meant that, when a file is opened, Notepad has to somehow detect what
encoding it is in. In my patch, I just read the first 3 bytes, and check if
they are FFFExx, FEFFxx, EFBBBF, or something else. I suppose I should use
IsTextUnicode, with an extra check for UTF8.
In my patch, I use an OFNHookProc... is there a simple way to detect if the
dialog it's hooking into is an Open or a Save As dialog? (Other than having two
hook procedures.)
--
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