pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Jeff Davis <pgsql@j-davis.com>
To: pgsql-hackers@postgresql.org
Subject: Re: ICU locale validation / canonicalization
Date: Fri, 10 Feb 2023 07:42:31 +0100
Message-ID: <87fe0094-93ff-aecf-3a9f-16e228981f05@enterprisedb.com> (raw)
In-Reply-To: <4e4243a2f1ef4a683fcaaa7a5bf7019a602dee17.camel@j-davis.com>
References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com>
	<9a42ad17-e8f4-083e-086f-c7aee43dfdc3@enterprisedb.com>
	<4e4243a2f1ef4a683fcaaa7a5bf7019a602dee17.camel@j-davis.com>

On 09.02.23 22:15, Jeff Davis wrote:
> On Thu, 2023-02-09 at 15:44 +0100, Peter Eisentraut wrote:
>> One use case is that if a user specifies a locale, say, of 'de-AT',
>> this
>> might canonicalize to 'de' today,
> Canonicalization should not lose useful information, it should just
> rearrange it, so I don't see a risk here based on what I read and the
> behavior I saw. In ICU, "de-AT" canonicalizes to "de_AT" and becomes
> the language tag "de-AT".

It turns out that 'de_AT' is actually a distinct collation from 'de' in 
CLDR, so that was not the best example.  What behavior do you see for 
'de_CH'?






view thread (46+ messages)  latest in thread

Message-ID: <87fe0094-93ff-aecf-3a9f-16e228981f05@enterprisedb.com>
Permalink:  ../87fe0094-93ff-aecf-3a9f-16e228981f05@enterprisedb.com/
Also on:    postgresql.org/message-id/87fe0094-93ff-aecf-3a9f-16e228981f05@enterprisedb.com

 · 

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-hackers@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, pgsql@j-davis.com
  Subject: Re: ICU locale validation / canonicalization
  In-Reply-To: <87fe0094-93ff-aecf-3a9f-16e228981f05@enterprisedb.com>
  References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> <9a42ad17-e8f4-083e-086f-c7aee43dfdc3@enterprisedb.com> <4e4243a2f1ef4a683fcaaa7a5bf7019a602dee17.camel@j-davis.com> <87fe0094-93ff-aecf-3a9f-16e228981f05@enterprisedb.com>

* 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