Date: Thu, 24 Mar 2016 19:37:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 208266] strxfrm and strcoll do not always agree Message-ID: <bug-208266-15@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208266 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@FreeBSD.org Reporter: munro@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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208266-15>