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 1pQN7P-0000VD-9z for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Feb 2023 06:42:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pQN7N-0000U5-Pq for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Feb 2023 06:42:45 +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 1pQN7N-0000Tw-Fy for pgsql-hackers@lists.postgresql.org; Fri, 10 Feb 2023 06:42:45 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pQN7K-0007Aa-Fw for pgsql-hackers@postgresql.org; Fri, 10 Feb 2023 06:42:45 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 13200581FE4; Fri, 10 Feb 2023 01:42:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 10 Feb 2023 01:42:40 -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=1676011360; x=1676018560; bh=0 +Oz/LhU+sj9zMSyTZR72MgOUpxi67mEBPY+mkgXuAU=; b=PhehfPHVuMpq0In5p 20wsrK23tcKZMpHHk2C5I6Oka2VoWwNLN4tDsYxHwkpEi+pyoGE7Dz7xjUmux3MA PEd4E1OFkfjFHqPSY+aDDVmFQ9uTs80YPptREh+gQH5CT3KbTph97Olbd2nUdGln vrjjw5ofGYwqHf/J6ZKegEkZQuyk1lMSbOn3O/DMSBtLHda72qIEK993c0qtmYrU 8Q8Uc9PxN0evKhgdTQIk7Gsx0lpKihkufBwf4cJ5oBXr/7fN/E3ZO6REkEmQsLNp NzsTBtTAuclqPoQNbNUNYHRezetngN+txL6DP++7RlzTBdMjQu6Sq3OxqufZbSMC YJI8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehgedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeefjeegheetuefhveevudelueeftdejteeiffetvdduhfdtieefgfeutedt veeggfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Feb 2023 01:42:39 -0500 (EST) Message-ID: <87fe0094-93ff-aecf-3a9f-16e228981f05@enterprisedb.com> Date: Fri, 10 Feb 2023 07:42:31 +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 To: Jeff Davis , pgsql-hackers@postgresql.org References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> <9a42ad17-e8f4-083e-086f-c7aee43dfdc3@enterprisedb.com> <4e4243a2f1ef4a683fcaaa7a5bf7019a602dee17.camel@j-davis.com> Content-Language: en-US From: Peter Eisentraut In-Reply-To: <4e4243a2f1ef4a683fcaaa7a5bf7019a602dee17.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 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'?