Re: [HACKERS] ICU integration - Mailing list pgsql-hackers

From Jeff Janes
Subject Re: [HACKERS] ICU integration
Date
Msg-id CAMkU=1xpD5x+jBMQBQWo4GmxYP4oK96T2r2sp84iQM9_XKGJow@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] ICU integration  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
On Thu, Mar 23, 2017 at 12:34 PM, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
On 3/23/17 05:34, Andreas Karlsson wrote:
> I am fine with this version of the patch. The issues I have with it,
> which I mentioned earlier in this thread, seem to be issues with ICU
> rather than with this patch. For example there seems to be no way for
> ICU to validate the syntax of the BCP 47 locales (or ICU's old format).
> But I think we will just have to accept the weirdness of how ICU handles
> locales.
>
> I think this patch is ready to be committed.
>
> Found a typo in the documentation:
>
> "The inspect the currently available locales" should be "To inspect the
> currently available locales".

Committed.

This has broken the C locale, and the build farm.

if (pg_database_encoding_max_length() > 1 || locale->provider == COLLPROVIDER_ICU)

segfaults because locale is null.  (locale_is_c is true)

Cheers,

Jeff

pgsql-hackers by date:

Previous
From: Mithun Cy
Date:
Subject: Re: [HACKERS] [POC] A better way to expand hash indexes.
Next
From: Teodor Sigaev
Date:
Subject: Re: [HACKERS] Potential data loss of 2PC files