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 1pQW2g-0005Hy-Ik for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Feb 2023 16:14:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pQW2e-0007Rd-1J for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Feb 2023 16:14:28 +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 1pQW2d-0007RU-JZ for pgsql-hackers@lists.postgresql.org; Fri, 10 Feb 2023 16:14:27 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pQW2b-0004vC-Bg for pgsql-hackers@postgresql.org; Fri, 10 Feb 2023 16:14:27 +0000 Received: by mail-pj1-x102a.google.com with SMTP id e10-20020a17090a630a00b0022bedd66e6dso10300718pjj.1 for ; Fri, 10 Feb 2023 08:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=s+c0QiKkx28cyaXEzXHpbhGJEbaKKXZQiEVbC0HyvA8=; b=FQN3YrDOVC5jnhmq+/XWxF+tnq4RRSPRNyGBIpZtMpG+0AEDl0QGae5mchbDgdh2bk T0omTinsfYnwRsLQ4IfuT7CMuAnrnZwPsRVzjtwMJSlKTnC0veH8gBBJ8pRW5XDZW5Ac wpTx9rEcajgPmOLrek4KuV0hfi0NWXq8Nni4SNPJr7Nz+bnGu89lHu799R33ylevqyxa nIlG+KbxVsFlBvjEEqx2PF2zJDU1OuVZ6mqjlOHcFV4oxDau0G/a2M9Tmfl9CT/WRZdu Aj12ZJAue8F429082HdKwEOm2V2+kRdzMCL7Eeb8iXcg8AbY4tEZZIBiBNxhjm1kz0WL L6iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=s+c0QiKkx28cyaXEzXHpbhGJEbaKKXZQiEVbC0HyvA8=; b=iqx0knmphyhydnWjd+u+rEU1GqYXKFQYhouIi/j5EpgHMGBMltf/W0XIst9DgicuMu 3fli4qtfHhGsuzth4fggT2S53K73dzfNFXfZGFO0bkIW92Gxx5NHR/r+e8DIh+8YE7bB /fIWzKzKxjFs5Vyk5JzIJsov9ZfkVn8CijjXE6u39J0IhCNvVN23m8LLE5ZLny7iZ8bE YmJI6K7DcT5bQNeVlFjDPthbeU7aqmK1a5sDAAXil+mY/viBAm6b6O2W9cu1jeknML8l Dbjpj3LJBr5WI6QPfqZYJWSGp0nVlOhusKOA3JvUX4jPMc360XCRR3Sm5D7BwL7kwJ5Y O0Jw== X-Gm-Message-State: AO0yUKX+W4lqmRalkmT12ZYzigjdsHCeQPd3ndiJFaI+gSwhDDbmIuAD B3XN+Ar4Vq8kBg51Bu4aMnRolQ== X-Google-Smtp-Source: AK7set9zrPKRdXTkONGAuFDoj1IoWw8Pdf1eFwZNzstDlVr+UVge3QFZVAZCrXeo1PZgljFjHwElNg== X-Received: by 2002:a17:90a:1a43:b0:229:4731:994d with SMTP id 3-20020a17090a1a4300b002294731994dmr16767972pjl.4.1676045663145; Fri, 10 Feb 2023 08:14:23 -0800 (PST) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id i1-20020a17090acf8100b0023347886e80sm2298175pju.16.2023.02.10.08.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Feb 2023 08:14:22 -0800 (PST) Message-ID: <23e8a25defc76e28eda91cd39efe9b75401725d6.camel@j-davis.com> Subject: Re: ICU locale validation / canonicalization From: Jeff Davis To: Peter Eisentraut , pgsql-hackers@postgresql.org Date: Fri, 10 Feb 2023 08:14:20 -0800 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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=20 > CLDR, so that was not the best example.=C2=A0 What behavior do you see fo= r > '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. --=20 Jeff Davis PostgreSQL Contributor Team - AWS