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
The test program is here:
Created attachment 168579 [details]
Created attachment 168580 [details]
Script to run test program against all locales
Filed as 'standards' because POSIX requires strxfrm and strcoll to agree, but please move to the correct component for libc bugs if appropriate.
This should be fixed in base r317034.
Assign to committer that resolves (see comment 4)
If the issue is not resolved, please re-open