Date: Thu, 24 Mar 2016 11:36:02 +1300 From: Thomas Munro <munro@ip9.org> To: freebsd-hackers@freebsd.org Subject: strcoll and strxfrm do not always agree in -CURRENT Message-ID: <CADLWmXU9E2R_k82RMD9vfA=BBmKRAv5wrvAf4Ppfn9D5zmgYzg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, 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 collation 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/19132.1458688784@sss.pgh.pa.us I had to increase MAXXFRMLEN to (MAXSTRLEN * 10) for it to work. Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLWmXU9E2R_k82RMD9vfA=BBmKRAv5wrvAf4Ppfn9D5zmgYzg>