Re: ICU locale validation / canonicalization

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ICU locale validation / canonicalization
Date: 2023-03-17 17:55:56
Message-ID: 9afa6dbe0d31053ad265aeba488fde784fd5b7ab.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2023-03-15 at 15:18 -0700, Jeff Davis wrote:
> I left out the validation patch for now, and I'm evaluating a
> different
> approach that will attempt to match to the locales retrieved with
> uloc_countAvailable()/uloc_getAvailable().

I like this approach, attached new patch series with that included as
0006.

The first 3 patches are essentially bugfixes -- should they be
backported?

--
Jeff Davis
PostgreSQL Contributor Team - AWS

Attachment Content-Type Size
v6-0001-Support-language-tags-in-older-ICU-versions-53-an.patch text/x-patch 5.1 KB
v6-0002-Wrap-ICU-ucol_open.patch text/x-patch 4.0 KB
v6-0003-Handle-the-und-locale-in-ICU-versions-54-and-olde.patch text/x-patch 5.4 KB
v6-0004-Add-SQL-function-pg_icu_language_tag.patch text/x-patch 10.8 KB
v6-0005-Canonicalize-ICU-locale-names-to-language-tags.patch text/x-patch 16.6 KB
v6-0006-Validate-ICU-locales.patch text/x-patch 9.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dagfinn Ilmari Mannsåker 2023-03-17 18:07:40 Re: Making background psql nicer to use in tap tests
Previous Message Tomas Vondra 2023-03-17 17:55:23 Re: logical decoding and replication of sequences, take 2