http://bugs.winehq.org/show_bug.cgi?id=26632
Summary: MultiByteToWideChar with MB_ERR_INVALID_CHARS doesn't fail for some code points. Product: Wine Version: 1.3.17 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: sagawa.aki+winebugs@gmail.com
Created an attachment (id=33899) --> (http://bugs.winehq.org/attachment.cgi?id=33899) test MB_ERR_INVALID_CHARS
I ran the attached source code in both Wine and Windows XP environments. In some codepages, inclueding Japanese (CP932), the result doesn't match.
For instance, Japanese Windows marks `X' (conversion fail) for 0xA0, 0xFD, 0xFE and 0xFF. But Wine (LANG=ja_JP.UTF-8) marks `o' (OK) for them. This only happens when I pass MB_ERR_INVALID_CHARS for MultiByteToWideChars.
This article might be help you. http://blogs.msdn.com/b/michkap/archive/2007/07/25/4037646.aspx