pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add support for collation attributes on older ICU versions
Date: Mon, 18 Mar 2019 12:03:51 -0700
Message-ID: <20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de> (raw)
In-Reply-To: <E1h5QWH-0004aV-Ua@gemulon.postgresql.org>
References: <E1h5QWH-0004aV-Ua@gemulon.postgresql.org>

Hi,

On 2019-03-17 07:47:45 +0000, Peter Eisentraut wrote:
> Add support for collation attributes on older ICU versions
> 
> Starting in ICU 54, collation customization attributes can be
> specified in the locale string, for example
> "@colStrength=primary;colCaseLevel=yes".  Add support for this for
> older ICU versions as well, by adding some minimal parsing of the
> attributes in the locale string and calling ucol_setAttribute() on
> them.  This is essentially what never ICU versions do internally in
> ucol_open().  This was we can offer this functionality in a consistent
> way in all ICU versions supported by PostgreSQL.
> 
> Also add some tests for ICU collation customization.
> 
> Reported-by: Daniel Verite <daniel@manitou-mail.org>
> Discussion: https://www.postgresql.org/message-id/0270ebd4-f67c-8774-1a5a-91adfb9bb41f@2ndquadrant.com

I now get this warning:

/home/andres/src/postgresql/src/backend/utils/adt/pg_locale.c:1680:14: warning: comparison of constant -1 with expression of type 'UColAttribute' is always true [-Wtautological-constant-out-of-range-compare]
                        if (uattr != -1 && uvalue != -1)
                            ~~~~~ ^  ~~


Greetings,

Andres Freund




view thread (4+ messages)  latest in thread

Message-ID: <20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de>
Permalink:  ../20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de

 · 

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-committers@postgresql.org
  Cc: andres@anarazel.de, peter@eisentraut.org
  Subject: Re: pgsql: Add support for collation attributes on older ICU versions
  In-Reply-To: <20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de>
  References: <E1h5QWH-0004aV-Ua@gemulon.postgresql.org> <20190318190351.bkgkrgr6frnv3cxr@alap3.anarazel.de>

* 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