[Bug 10767] lstrcmp and others do not compare punctuation characters correctly

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jul 31 14:39:21 CDT 2010


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


Sergey Kvachonok <ravenexp at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ravenexp at gmail.com




--- Comment #29 from Sergey Kvachonok <ravenexp at gmail.com>  2010-07-31 14:39:20 ---
Still present in 1.2.

lstrcmpiA(".", "_") == 1 in wine, while it's -1 in windows and < 0 for
strcasecmp with any glibc locale I tried.

Seriously, ASCII '.' = 0x2E, ASCII '_' = 0x5F. Is it that hard to figure out?
As it is it's breaking any case-insensitive indexes relying on case insensitive
sorting of ASCII strings.
It's not just presentation problem, applications can't read their data because
binary/tree searches fail on wine.

Is there a way to make it work at least for ASCII range, using LC_COLLATE or
LC_CTYPE or whatever? I believe a lot less if any windows code depends on
obscure Unicode collation rules, so this should can come after fixing this bug.

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