[Bug 25251] New: Multi-byte characters handled incorrectly by MSVCRT_isleadbyte()
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Nov 21 18:15:27 CST 2010
http://bugs.winehq.org/show_bug.cgi?id=25251
Summary: Multi-byte characters handled incorrectly by
MSVCRT_isleadbyte()
Product: Wine
Version: 1.3.7
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: msvcrt
AssignedTo: wine-bugs at winehq.org
ReportedBy: nagatospam at gmail.com
Created an attachment (id=32067)
--> (http://bugs.winehq.org/attachment.cgi?id=32067)
Possible fix
Here's a case that can be used to test with:
_mbspbrk("C:\\age\\マブラヴオルタネイティヴ\\Alternative.rio.ici", ";,|*?\"<>{}[]");
None of the Japanese characters are interpreted as multi-byte by
MSVCRT_isleadbyte() so when _mbspbrk reaches 'マ' (0x837D) it matches the '}'
(0x7D) from the match string with the second byte of 'マ'.
Only tested in Japanese locale but probably happens with others. Attached is a
simple fix that fixes the 2 games that I tested.
--
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