From owner-freebsd-hackers@freebsd.org Wed Mar 23 22:45:51 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DB0BADB1B4 for ; Wed, 23 Mar 2016 22:45:51 +0000 (UTC) (envelope-from munro@penski.net) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0945210ED for ; Wed, 23 Mar 2016 22:45:51 +0000 (UTC) (envelope-from munro@penski.net) Received: by mail-io0-x235.google.com with SMTP id c63so71525789iof.0 for ; Wed, 23 Mar 2016 15:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=penski-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=KTI+SWYIJo5HAsaa+vcoF0HWdScnxymbhSZxl8/0esU=; b=o2DebjPj9nym7ALW7nHK/uyQfYB1poy6eg+MQE0QvCHZDGRzSnaYSmiC6QyBoEL6No 8s3Sic6c2XqUuOM/xOebYsHx8H8+xk5+mH/jsomAgc8JVDofigJOXP2cWRBRkPwIF1jG Q9hL/BwQ2qzQU0c460SebCPweyTWJKeDUx6oXH36R34RTuW7Z5jRh4zVbh1VnHDYlNEj ZKscbN3T3kgCYikn3oAdpW0Y3jirXIbiC6LZRKQFAyspilbPEOPlByDPvTyr0UAynJcL 6140lL8y2XmUMeFuAcKbbyPbxKT2ybK71nXXBpgnNDULlHaKxpnSF1FoKiSVEJuJTBrV fbXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=KTI+SWYIJo5HAsaa+vcoF0HWdScnxymbhSZxl8/0esU=; b=Lmn+NsLxS6yRQbWYJIYP0ALV/u0uMIMRMnExgAlQUCSyCrKjz2KRASaL3htiuvIdF8 r4kFNUw+xd6rQBFbyU6ISCkRMSde6sPLNah2szUaj74tkcVDZWfiHty/l/MOorVeFjdS fMv9b/TLO1V0wyvSbF+HEFJdDrFq5roxRDgO6m4oX3NRSAqfOu92vVL/nWs1J26WvD/m kJ7SO12vFPEw00xB/llqsoWK8OCLWQk2OGuOgEZc2Fj/E1NVaHz8t/YgnNfoVlogEROK Uo55HOleQHt9vYkMkoB4e18BK/ByRu8yJd7lrFBsf8j7zWbe/m2KGFr1r6dV6tDFaKOw pUhw== X-Gm-Message-State: AD7BkJLKpoWDY3a0dOZl2ODkpS30vCFC/tezrCUB3qy0uoqFVXDDV3KYdh4uLc0VEfq/0xGjE6ZE6kZpHqz6YA== MIME-Version: 1.0 X-Received: by 10.107.7.20 with SMTP id 20mr5953845ioh.181.1458773150416; Wed, 23 Mar 2016 15:45:50 -0700 (PDT) Sender: munro@penski.net Received: by 10.36.147.199 with HTTP; Wed, 23 Mar 2016 15:45:50 -0700 (PDT) X-Originating-IP: [121.73.38.77] In-Reply-To: References: Date: Thu, 24 Mar 2016 11:45:50 +1300 X-Google-Sender-Auth: qO3xlov8t8oYrVG1UxG3ycBdUPs Message-ID: Subject: Re: strcoll and strxfrm do not always agree in -CURRENT From: Thomas Munro To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2016 22:45:51 -0000 On 24 March 2016 at 11:36, Thomas Munro 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