[Bug 208266] strxfrm and strcoll do not always agree
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Mar 24 19:37:16 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208266
Bug ID: 208266
Summary: strxfrm and strcoll do not always agree
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: standards
Assignee: freebsd-standards at FreeBSD.org
Reporter: munro at ip9.org
The man page for strxfrm says:
"Comparing two strings using strcmp() after strxfrm() is equal to compar-
ing two original strings with strcoll()."
The PostgreSQL hackers wrote a test program to study a collation bug
on another operating system. The test generates random strings and
checks if strxfrm and strcoll agree on their ordering, according to
each locale available on the system. I decided to try it out on
FreeBSD and found that it passes on 10.2, but fails miserably on
11.0-CURRENT.
The test program is here:
http://www.postgresql.org/message-id/31913.1458747836@sss.pgh.pa.us
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list