Re: [HACKERS] PostgreSQL 10 (latest beta) and older ICU - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] PostgreSQL 10 (latest beta) and older ICU
Date
Msg-id 0523762c-be62-b271-226f-0771df613365@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] PostgreSQL 10 (latest beta) and older ICU  (Victor Wagner <vitus@wagner.pp.ru>)
Responses Re: [HACKERS] PostgreSQL 10 (latest beta) and older ICU  (Victor Wagner <vitus@wagner.pp.ru>)
List pgsql-hackers
On 7/25/17 15:20, Victor Wagner wrote:
> It turns out, that PostgreSQL enumerates collations for all ICU locales
> and passes it into uloc_toLanguageTag function with strict argument of
> this function set to TRUE. But for some locales
> (es*@collation=tradtiional, si*@collation=dictionary) only call with
> strict=FALSE succeeds in ICU 4.2. In newer versions of ICU all locales
> can be resolved with strict=TRUE.

We are only calling uloc_toLanguageTag() with keyword/value combinations
that ICU itself previously told us were supported.  So just ignoring
errors doesn't seem proper in this case.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Chapman Flack
Date:
Subject: [HACKERS] Re: [PATCH] Pattern based listeners for asynchronous messaging(LISTEN/NOTIFY)
Next
From: Thomas Munro
Date:
Subject: Re: [HACKERS] Parallel Hash take II