Date: Thu, 24 Mar 2016 11:45:50 +1300 From: Thomas Munro <munro@ip9.org> To: freebsd-hackers@freebsd.org Subject: Re: strcoll and strxfrm do not always agree in -CURRENT Message-ID: <CADLWmXXT12guxcJ1VroSqvyk_76_fFyAst-rvCF49BcW1yOZvw@mail.gmail.com> In-Reply-To: <CADLWmXU9E2R_k82RMD9vfA=BBmKRAv5wrvAf4Ppfn9D5zmgYzg@mail.gmail.com> References: <CADLWmXU9E2R_k82RMD9vfA=BBmKRAv5wrvAf4Ppfn9D5zmgYzg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 24 March 2016 at 11:36, Thomas Munro <munro@ip9.org> wrote: > 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. Oops, I missed this updated version which doesn't require that modification. The result is the same: pass on 10.2, fail on 11.0. http://www.postgresql.org/message-id/31913.1458747836@sss.pgh.pa.us Best regards, Thomas Munro
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLWmXXT12guxcJ1VroSqvyk_76_fFyAst-rvCF49BcW1yOZvw>