Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQ8Ad-0004BT-LC for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Feb 2023 14:45:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pQ8Ac-0007ms-43 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Feb 2023 14:45:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQ8Ab-0007kB-Pi for pgsql-hackers@lists.postgresql.org; Thu, 09 Feb 2023 14:45:05 +0000 Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQ8AX-0004Wz-Sg for pgsql-hackers@postgresql.org; Thu, 09 Feb 2023 14:45:05 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 6A1DE2B0695F; Thu, 9 Feb 2023 09:44:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 09 Feb 2023 09:44:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1675953899; x=1675961099; bh=w OGRPe9QRI8JRGdj5pxHujOpok3nD+/mTxu4JvAqzu8=; b=pd2puM9x/SDbeKnwo kdEL5+fNf/o25jOWwicVFZLNk+O68u7G5EZ8kwklNegTeXgEm7+QlkCus9OThaWY 8nT1IgNKyL26oopxzBMrMaL/cX6InZ2bk5e8ekzMxNYfLKX8i963r7vA55cp/dSq 3KdsouqA2hHXbrq2y5afzPXieb/VGueSRF2vasU6pZ9Jj/VWTAWHeBuzV4Gre4l1 f28NRe+A0kyV8fEyT+gX/2e1pBh7CtMPMgtGAP1t5e1pmPKYghazbQ0oZ0R+eM4a dwuQ3C4XZy0jiUJJRMDcpkhMZbADFrKe2Wscza0D3P1EVUI/BcEYYZX+cEpGCFiX 0Azfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehfedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeefjeegheetuefhveevudelueeftdejteeiffetvdduhfdtieefgfeutedt veeggfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Feb 2023 09:44:57 -0500 (EST) Message-ID: <9a42ad17-e8f4-083e-086f-c7aee43dfdc3@enterprisedb.com> Date: Thu, 9 Feb 2023 15:44:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: ICU locale validation / canonicalization Content-Language: en-US To: Jeff Davis , pgsql-hackers@postgresql.org References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> From: Peter Eisentraut In-Reply-To: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 08.02.23 08:59, Jeff Davis wrote: > The overall benefit here is that we keep our catalogs consistently > using an independent standard format for ICU locale strings, rather > than whatever the user specifies. That makes it less likely that ICU > needs to use any fallback logic when trying to open a collator, which > could only be bad news. One use case is that if a user specifies a locale, say, of 'de-AT', this might canonicalize to 'de' today, but we should still store what the user specified because 1) that documents what the user wanted, and 2) it might not canonicalize to the same thing tomorrow.