Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxb7s-0001m0-HT for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Feb 2019 17:30:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gxb7r-0003vA-Av for pgsql-bugs@arkaria.postgresql.org; Sat, 23 Feb 2019 17:30:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxb7r-0003v3-4b for pgsql-bugs@lists.postgresql.org; Sat, 23 Feb 2019 17:30:11 +0000 Received: from mail.verite.pro ([185.16.44.216]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxb7o-0005f1-I8 for pgsql-bugs@lists.postgresql.org; Sat, 23 Feb 2019 17:30:10 +0000 Received: from genius-map.net (verite.pro [195.154.189.246]) by mail.verite.pro (Postfix) with ESMTP id EF57F8C022D; Sat, 23 Feb 2019 18:24:58 +0100 (CET) Received: by genius-map.net (Postfix, from userid 1001) id 2001438A1C1F; Sat, 23 Feb 2019 18:30:05 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: BUG #15651: Collation setting en_US.utf8 breaking sort order From: "Daniel Verite" To: "Peter Eisentraut" Cc: "Tom Lane" ,kaleb.akalework@asg.com,pgsql-bugs@lists.postgresql.org In-Reply-To: <1f6f60bf-79a4-b739-5e04-8360085cf3d8@2ndquadrant.com> Date: Sat, 23 Feb 2019 18:30:01 +0100 Message-Id: <9cbd8ba7-899f-4ed3-92b1-902b0d2456ae@manitou-mail.org> X-Mailer: Manitou v1.7.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut wrote: > With ICU (COLLATE "und-x-icu"), I get the line with the space first. I > took a bit of a look around the various Unicode documents and I don't > find anything that would defend the glibc behavior. The glibc result is now version-dependent. With glibc-2.28, on Debian buster: buster$ LC_COLLATE=3Den_US.utf8 sort stuff.txt ~!@#$^&( AAA BAA CAA buster$ apt-cache show libc-bin | grep Version Version: 2.28-7 As opposed to the current Debian stable, with glibc-2.24: stretch$ LC_COLLATE=3Den_US.utf8 sort stuff.txt=20 ~!@#$^&( AAA BAA CAA DAA stretch$ apt-cache show libc-bin|grep Version Version: 2.24-11+deb9u3 Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite