pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers@postgresql.org
Subject: Re: ICU locale validation / canonicalization
Date: Fri, 10 Feb 2023 08:14:20 -0800
Message-ID: <23e8a25defc76e28eda91cd39efe9b75401725d6.camel@j-davis.com> (raw)
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>

On Fri, 2023-02-10 at 07:42 +0100, Peter Eisentraut wrote:
> 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'?

The canonicalized form is de_CH and the bcp47 tag is de-CH.

uloc_canonicalize() and uloc_getLanguageTag() are declared in uloc.h,
and they aren't (as far as I can tell) tied to which collations are
actually defined.

-- 
Jeff Davis
PostgreSQL Contributor Team - AWS






view thread (46+ messages)  latest in thread

Message-ID: <23e8a25defc76e28eda91cd39efe9b75401725d6.camel@j-davis.com>
Permalink:  ../23e8a25defc76e28eda91cd39efe9b75401725d6.camel@j-davis.com/
Also on:    postgresql.org/message-id/23e8a25defc76e28eda91cd39efe9b75401725d6.camel@j-davis.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: pgsql@j-davis.com, peter.eisentraut@enterprisedb.com
  Subject: Re: ICU locale validation / canonicalization
  In-Reply-To: <23e8a25defc76e28eda91cd39efe9b75401725d6.camel@j-davis.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> <23e8a25defc76e28eda91cd39efe9b75401725d6.camel@j-davis.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