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

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Aug 1 05:13:11 CDT 2010


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





--- Comment #34 from Dmitry Timoshkov <dmitry at codeweavers.com>  2010-08-01 05:13:10 ---
(In reply to comment #33)
> > > Seriously, ASCII '.' = 0x2E, ASCII '_' = 0x5F. Is it that hard to figure out?
> > 
> > Feel free to file a bug at unicode.org
> 
> Please stop blaming unicode people for this. There is more than one way to sort
> character strings, so the whole point of theoretical correctness of the current
> approach is useless.

Please re-read all the comments above, starting from the comment #1.

> For example:
> > In the POSIX locale, strcasecmp() and strncasecmp() shall behave as if the strings had been converted to lowercase and then a byte comparison performed. The results are unspecified in other locales.
> 
> Sane, stable and sufficiently specified.
> 
> Unfortunately, windows takes some other (third) approach to this, as I found
> here:
> http://www.mail-archive.com/[email protected]/msg56188.html
> 
> Furthermore, it is clearly stated that unicode collation rules are language and
> locale dependent:
> http://cldr.unicode.org/index/cldr-spec/collation-guidelines

See the comment #24.

> I believe wine as a windows _emulator_ should have exactly the same behavior as
> winapi, right or not. Given that locale-specific customizations are
> unavoidable, windows-style collation tables must be at least an option, if not
> default.

Wine is not an emulator, believe you to it or not doesn't matter.

If you think that Wine should copy unicode collation tables from Windows
and be done with it at least think of a legal subsequences of this approach.

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