[Bug 26632] MultiByteToWideChar with MB_ERR_INVALID_CHARS doesn't fail for some code points.

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 3 09:35:29 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26632

--- Comment #13 from Sagawa <sagawa.aki+winebugs at gmail.com> 2011-04-03 09:35:28 CDT ---
Created an attachment (id=33916)
 --> (http://bugs.winehq.org/attachment.cgi?id=33916)
testcase for the patch

(In reply to comment #11)
> This should be done in libs/wine/mbtowc.c,check_invalid_chars_dbcs() instead.

Thank you for your comments.
Third hunk of the patch is for check_invalid_chars_dbcs().

Why did I patch into check_invalid_chars_sbcs()? Because some SBCS codepages,
e.g. CP1255, have a same problem. Attached test case examines these behavoir.

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