Re: ICU locale validation / canonicalization - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: ICU locale validation / canonicalization
Date
Msg-id 70f1f48f-ef4b-89ec-f4a4-f9ebbec67b5c@proxel.se
Whole thread Raw
In response to Re: ICU locale validation / canonicalization  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: ICU locale validation / canonicalization
List pgsql-hackers
On 2/9/23 23:09, Jeff Davis wrote:
> I do like the ICU format locale IDs from a readability standpoint.
> "en_US@colstrength=primary" is more meaningful to me than "en-US-u-ks-
> level1" (the equivalent language tag). And the format is specified[1],
> even though it's not an independent standard. But I think the benefits
> of better validation, an independent standard, and the fact that we're
> already favoring BCP47 outweigh my subjective opinion.

I have the same feeling one is readable and the other unreadable but the 
unreadable one is standardized. Hard call.

And in general I agree, if we are going to make ICU default it needs to 
be more user friendly than it is now. Currently there is no nice way to 
understand if you entered the right locale or made a typo in the BCP47 
syntax.

Andreas




pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Minor meson gripe
Next
From: Tatsuo Ishii
Date:
Subject: Re: make_ctags: use -I option to ignore pg_node_attr macro