pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Verite <daniel@manitou-mail.org>
To: arnaud.perrier@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16570: Collation not working
Date: Mon, 03 Aug 2020 19:35:50 +0200
Message-ID: <23d3f3ec-5022-4535-8bd4-bb2c56456767@manitou-mail.org> (raw)
In-Reply-To: <16570-58cc04e1a6ef3c3f@postgresql.org>

	PG Bug reporting form wrote:

> The collation to order digits after latin characters from the official
> documentation https://www.postgresql.org/docs/12/collation.html 
> 
> CREATE COLLATION digitslast (provider = icu, locale =
> 'en-u-kr-latn-digit'); 

The doc has this caveat:
"The examples using the k* subtags require at least ICU version 54."

Since you're using ICU 53,  the syntax mentioned above for the locale
argument doesn't work. It doesn't error out, it's just being ignored.

You want to use exclusively the "old" syntax with option=value
instead of tags, for instance:
   locale = 'en@colReorder=latn-digit',
or build with a newer ICU version.

Unfortunately the EDB builds for Windows (maybe for linux
too I didn't check) ship with ICU 53, although this version
is 6 years old.


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





view thread (10+ messages)  latest in thread

Message-ID: <23d3f3ec-5022-4535-8bd4-bb2c56456767@manitou-mail.org>
Permalink:  ../23d3f3ec-5022-4535-8bd4-bb2c56456767@manitou-mail.org/
Also on:    postgresql.org/message-id/23d3f3ec-5022-4535-8bd4-bb2c56456767@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, arnaud.perrier@gmail.com
  Subject: Re: BUG #16570: Collation not working
  In-Reply-To: <23d3f3ec-5022-4535-8bd4-bb2c56456767@manitou-mail.org>
  References: <16570-58cc04e1a6ef3c3f@postgresql.org> <23d3f3ec-5022-4535-8bd4-bb2c56456767@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