pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Verite <daniel@manitou-mail.org>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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 18:30:01 +0100
Message-ID: <9cbd8ba7-899f-4ed3-92b1-902b0d2456ae@manitou-mail.org> (raw)
In-Reply-To: <1f6f60bf-79a4-b739-5e04-8360085cf3d8@2ndquadrant.com>

	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=en_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=en_US.utf8 sort stuff.txt 
  ~!@#$^&(

  AAA
  BAA
  CAA
  DAA

  stretch$ apt-cache show libc-bin|grep Version
  Version: 2.24-11+deb9u3


Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite




view thread (9+ messages)  latest in thread

Message-ID: <9cbd8ba7-899f-4ed3-92b1-902b0d2456ae@manitou-mail.org>
Permalink:  ../9cbd8ba7-899f-4ed3-92b1-902b0d2456ae@manitou-mail.org/
Also on:    postgresql.org/message-id/9cbd8ba7-899f-4ed3-92b1-902b0d2456ae@manitou-mail.org

 · 

reply

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: daniel@manitou-mail.org, 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: <9cbd8ba7-899f-4ed3-92b1-902b0d2456ae@manitou-mail.org>
  References: <1f6f60bf-79a4-b739-5e04-8360085cf3d8@2ndquadrant.com> <9cbd8ba7-899f-4ed3-92b1-902b0d2456ae@manitou-mail.org>

* 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