Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uN9tL-00DDmf-8b for pgsql-general@arkaria.postgresql.org; Thu, 05 Jun 2025 12:40:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uN9tJ-008gH2-DD for pgsql-general@arkaria.postgresql.org; Thu, 05 Jun 2025 12:40:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uN9tJ-008gGq-2k for pgsql-general@lists.postgresql.org; Thu, 05 Jun 2025 12:40:17 +0000 Received: from dverite2024.planet-service.net ([185.16.44.252] helo=mail.verite.pro) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uN9tH-000Nt6-2H for pgsql-general@postgresql.org; Thu, 05 Jun 2025 12:40:16 +0000 Received: by mail.verite.pro (Postfix, from userid 1000) id 12AA12C007D; Thu, 5 Jun 2025 14:40:12 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: LOCALE C.UTF-8 on EDB Windows v17 server From: "Daniel Verite" To: "Dominique Devienne" Cc: "Laurenz Albe" ,pgsql-general@postgresql.org In-Reply-To: Date: Thu, 05 Jun 2025 14:40:08 +0200 Message-Id: X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dominique Devienne wrote: > On Linux, no error unlike on Windows (still inconsistent there IMHO), > but the result is slightly different for datcollate and datctype (C vs > en_US), > while the same for datlocprovider and datlocale, what I looked at. >=20 > Thus I kinda persist that there *is* a portability issue here. "datcollate" and "datctype" refer to operating system locale names. locale 'C.UTF-8' or lc_collate 'C.UTF-8' lc_ctype 'C.UTF-8' cannot work on Windows because Windows does not have a locale named C.UTF-8, whereas a Linux system does (well at least recent Linuxes. Some old Linuxes don't). What you are seeing is the effect of OS locales not being portable across systems. That's confusing but not a Postgres bug. Best regards, --=20 Daniel V=E9rit=E9=20 https://postgresql.verite.pro/