From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: kaleb.akalework@asg.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15651: Collation setting en_US.utf8 breaking sort order
Date: Sat, 23 Feb 2019 09:36:39 +0100
Message-ID: <1f6f60bf-79a4-b739-5e04-8360085cf3d8@2ndquadrant.com> (raw)
In-Reply-To: <17689.1550858606@sss.pgh.pa.us>
References: <15651-0caa86edc3ca0505@postgresql.org>
<17689.1550858606@sss.pgh.pa.us>
On 2019-02-22 19:03, Tom Lane wrote:
> $ LANG=en_US sort stuff.txt
> ~!@#$^&(
>
> AAA
> BAA
> CAA
> DAA
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.
<obscure detail>
However, since some of those special characters are variable collating
elements and some are not, there might well be an explanation.
</obscure detail>
So, maybe try ICU.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, kaleb.akalework@asg.com
Subject: Re: BUG #15651: Collation setting en_US.utf8 breaking sort order
In-Reply-To: <1f6f60bf-79a4-b739-5e04-8360085cf3d8@2ndquadrant.com>
References: <15651-0caa86edc3ca0505@postgresql.org> <17689.1550858606@sss.pgh.pa.us> <1f6f60bf-79a4-b739-5e04-8360085cf3d8@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox