http://bugs.winehq.org/show_bug.cgi?id=18191
--- Comment #26 from Alexander Scott-Johns alexander.scott.johns+winebug@googlemail.com 2009-07-07 17:06:27 --- (In reply to comment #25)
(In reply to comment #24)
[snip]
When opening the <utf8 -bom> file, what encoding does WinXP Notepad select in the Open dialog? Did you override it?
It shows UTF-8. Keep in mind that utf16-le/be with no bom work fine. It's only utf-8 that's broken.
That's interesting... so WinXP Notepad detected the file was in utf8. This is quite hard to do.
Perhaps you need to use the IsTextUnicode() function here...
This doesn't support detecting utf8, unfortunately.