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 1uNHsM-00GEiP-FA for pgsql-general@arkaria.postgresql.org; Thu, 05 Jun 2025 21:11:50 +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 1uNHsK-00F9sB-IK for pgsql-general@arkaria.postgresql.org; Thu, 05 Jun 2025 21:11:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uNHsK-00F9pP-5f for pgsql-general@lists.postgresql.org; Thu, 05 Jun 2025 21:11:48 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uNHsJ-000QVb-0n for pgsql-general@postgresql.org; Thu, 05 Jun 2025 21:11:48 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-742c2ed0fe1so1545558b3a.1 for ; Thu, 05 Jun 2025 14:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1749157904; x=1749762704; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=jgx2xdDlgOTojnU4JcD7msa5v7jLaJBiReQ21RHX3vs=; b=C8A/n4oMJUQCdBPtiYj8bbsEIHzKM7YfYWIiR/Q3wt0d//EEJBqQlxGH9rTvZQwHCZ LlORaUkdmqBfkuafMPUV0DdmV9H1N3ycwTlbIMAB9qdIc/Htb6u4/JHO41R0JCRwYXFP nSarELAyQR8WYRf+gz8S/S6o8vxmQ0rb28Bb0HIA36+QiuHOb538oRfdwnLL9TxmkFFm UriAbl6lwpaAMq9QufKPByQMgLwKBG768sfj6t4u1iFB3JX0K7qb72IR4kPdZ17mn5kk u/1aC8jaz5pmCDnHrFOSJhHjv+hS/YiAmR7uOr5mJszjfC0NZ0QAtQ3xN0ftj4py9jRo OEBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749157904; x=1749762704; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jgx2xdDlgOTojnU4JcD7msa5v7jLaJBiReQ21RHX3vs=; b=kW+RNfe8wG8jUWfyNAk1OCtCRAmaoYWMtiVDZ5auemmDcWMUFZ/aBxpLoePFA4k5h8 E6r31ZnTFYsiagdo0reSTG0EDuTkb8eSObccCwUVcVLf/9kA6nbz/xnB/A1BOUc7k/rI 1RV+C21OnVsFEZwQHE5mR8vIIN/wuyBu8lDx7ugdF/n41FSYUlxV91yYeNl2/jCw4ITp 80kHR5Io5UdgTmDC5WGl0wgbokRYuJHVGt9n+K5ejAv1v4UUkEp1S72r9d/hkXU5WflG JYGC4DsokqrP7SxiV1IDh+nWxngMR0m0E7eS35L6INIW2YdpC/kuxKpmPYf+7IolZwNi 5tUQ== X-Gm-Message-State: AOJu0YyI/mcTqVR6XVdOMh75cCc3u4yiXfNuiX/GxEI8qs+kwW9f2y83 S7Ra+cH4Jr7InOodsuHktIl/coBYEPyEjW+2SEALM/SydzJ4xiLyv9T511tsQNZGysQjwOgJy7L AocI= X-Gm-Gg: ASbGncsycDdjj2yil5Adl6iktvONY9eEStmGIOYzTTLmWX8Suq6wamqpFF2N2c9SKZZ ClZnAenNl7VKXGscHiJ4/CETg6dmPt9w6KWtvIRk9ojVdldW+uBLgGKn308YMS+thpqkUxwCsCD l6+f9wsQq4M+67khTI67oJTLRpFrhJEyjU9EdalE1vVBMdx8oMlTyXbIEkCHCli9rf7vN0PpRL+ 04+spN+OzlvQy1VPlY+ho9bYqLnPQqeVHEBjf42Cpr9mgbLn6wlw2c4iHz4TlMV8LKskFMGvtC5 GYenjGd/hWyiG8MF4mlGr5d6fi+N5x6siUrSMItxDAWmuzE69d42ObjdWO83vDn9sRi49jMiMrz ot90wlMg/sN0JbOPA9+oge9P3msiTA2FH X-Google-Smtp-Source: AGHT+IFWDsIY1lU9gXkkrkg8i5dM8Zub2yTjh3+Nmp0t7mIboHd187VkX81XHdMNmhLXKw9YINHgsQ== X-Received: by 2002:a05:6a00:179a:b0:736:5822:74b4 with SMTP id d2e1a72fcca58-74827f3b77amr1507785b3a.21.1749157904400; Thu, 05 Jun 2025 14:11:44 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7482af7a216sm108556b3a.40.2025.06.05.14.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jun 2025 14:11:44 -0700 (PDT) Message-ID: Subject: Re: LOCALE C.UTF-8 on EDB Windows v17 server From: Jeff Davis To: Dominique Devienne Cc: pgsql-general@postgresql.org Date: Thu, 05 Jun 2025 14:11:43 -0700 In-Reply-To: References: <2cd2cf04ba6ea21678b893dbfebe97bcf82726dc.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-06-05 at 11:34 +0200, Dominique Devienne wrote: > On Thu, Jun 5, 2025 at 11:07=E2=80=AFAM Dominique Devienne > wrote: > > So... It is possible to have the SAME command on Windows and Linux, > > which yields the SAME datcollate and datctype values??? > > So far, such a command eludes me, I'm afraid. --DD >=20 > So I tried to be explicit about lc_collate and lc_ctype too. > OK on Linux, KO on Windows... LC_COLLATE and LC_CTYPE (datcollate and datctype) are platform- dependent (handled by libc) so it won't be possible for those to have the same meaning across different systems. The only locale that's guaranteed to be available, AFAIK, is "C". Even some other unix-like operating systems don't support "C.UTF-8". The good news is that LC_COLLATE and LC_CTYPE don't have much effect if you are using a different provider like "builtin" or ICU. They affect the server's LC_COLLATE and LC_CTYPE environment, which does have a few effects, but in general we are trying to avoid cases where those matter a lot. To maintain consistency across platforms, use LC_COLLATE=3DC and LC_CTYPE=3DC when creating a database; along with the builtin provider and UTF-8 as you are already doing. Regards, Jeff Davis