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-15 06:47:42
Message-ID: 20a2f13f652e6252531a449508e8a8be31d7664f.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 2023-03-14 at 10:10 -0700, Jeff Davis wrote:
> One loose end is that we really should support language tags like
> "und"
> in those older versions (54 and earlier). Your commit d72900bded
> avoided the problem, but perhaps we should fix it by looking for
> "und"
> and replacing it with "root" while opening, or something.

Attached are a few patches to implement this idea.

--
Jeff Davis
PostgreSQL Contributor Team - AWS

Attachment Content-Type Size
v4-0001-Support-language-tags-in-older-ICU-versions-53-an.patch text/x-patch 5.0 KB
v4-0002-Wrap-ICU-ucol_open.patch text/x-patch 3.6 KB
v4-0003-Handle-the-und-locale-in-ICU-versions-54-and-olde.patch text/x-patch 5.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Takamichi Osumi (Fujitsu) 2023-03-15 06:49:36 RE: Allow logical replication to copy tables in binary format
Previous Message Bharath Rupireddy 2023-03-15 06:43:56 Re: Add pg_walinspect function with block info columns