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.96) (envelope-from ) id 1vVHv4-00Hb7i-2B for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Dec 2025 23:23:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVHv3-0037Lx-25 for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Dec 2025 23:23:58 +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.96) (envelope-from ) id 1vVHv3-0037Lo-10 for pgsql-hackers@lists.postgresql.org; Mon, 15 Dec 2025 23:23:58 +0000 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vVHv2-000rsM-0q for pgsql-hackers@lists.postgresql.org; Mon, 15 Dec 2025 23:23:56 +0000 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-78c6a53187dso42654217b3.2 for ; Mon, 15 Dec 2025 15:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765841035; x=1766445835; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u7/1Z3D7oKZcOCXYRr0FHviOqMAf/K99OL22Ic5M1o8=; b=BHEGpwXPcjgRxcKYkw9FVpP+INtTye1J3HkuhWYcHKl+XBi1Gq7NtN5uUMgPJJkKzG yhSxi/STxQjGY0CCozoBvarJmEbcwqWkTiQEOZRjeaH7+t1SxVM5+OUQQtGtnbyRm5EY dlZSE73lz9j0kX+O746qaRfWvSxOTdk+1G4F4ACtWBjnEMJPqBCIVgV93rYyITW96zJn sRPF4Wy1vl+g50ARbqmyPVQhx0vGEzqGl85i44LQ8SRhNBkQRZ4EaHEXfClukkkCe5FH FlIK39juUOcHGuv5urSs5QUndOS0l4sNMTUIFhCPxNqkus1sdoeXCk/PkWbmIXigRUlq BFEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765841035; x=1766445835; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u7/1Z3D7oKZcOCXYRr0FHviOqMAf/K99OL22Ic5M1o8=; b=TyXrmzNsbIq9AkAEVqMx1b/cJruJYyCSllztiLRE7by8KTkF7ESFk5ViwXqEIATkim jFqs5SIxSCBMwHzej7bTJg2jYnS6zNB1a4o6vPlWfip65XsE4r+kb/bsI2cIypMFmVzu T4mPB1LDNPvtwEfXZFborXakMafg43hjJYvWL/cQls1RRIXSeFjkpn0OVIPHIHx6O/da XNDvefUtVcgLSd/9ignZfWZYgFcp62WYNVWtpYYddg2ONJeJTGRmOFMhklJc4XpACzQN 62NKa+fFeQybwqnGDYyCkNbA70fY8DZaQrdlKHKlXfIJbpS1zWbipC2IfJ6EiHAnSXg0 azMA== X-Gm-Message-State: AOJu0YyWhXeSHuL8OFQSC9W1Mnjp+HpU4p7d77zBXOTQIj8MZsLPXVJw 01jTw/F89gnGse1myArtEWktauzacEZz7eUhLSys5oKwDnspwoST/OD3 X-Gm-Gg: AY/fxX6fv3a+WLnPIi3ri0JNE00OKMNm0edqNWwmZi+SHOZHAKzCqcQE0DUQhzmHMgN ZBmtGbVDmr7mq7enF2vc6AruFFKQ+y7sMgzKP3MXWJAq2nVumy8TcTPl6SHyfYPiObaDAuyFAbH Yo2SxBwnMGF1tLTMLMuQx2v1WZMVzIZNVvaRs2eX4sT3l0Z+zoZyhwe+tvP8eJhdhXYUGD1MIEU 5SYzjUCIh59T9VIbym11Gm4KIPVVZSRd7UoSsORd8xbt6ujL6a48A/sKjMvMDJDQAlOd2y/rw/N gNX8XL3mbXv/w1FqCI/QenK4AoMFC202X9rgogyNawOnBCveys21WuUghksugF+OlNS4ghMwFq0 Zr6LTq4fzJDk2Tm9JKdu79KF//Ju/muGFcu0QFz1cfy0y5xEK+E0p5Hnuz+VZZKpLOdNAEpJxp7 ylzoKCSnp63niVdMA0GYjtzBlC15Zc96QhZ6BUXlDLE9eIiUNt1+0N2bqJeT/6yK// X-Google-Smtp-Source: AGHT+IEcTd56ofKjV+Uh21vQniPuJIu09tANls6kvqAuATLaEsFqU51Ry/6B0swy+BF3nZeJvZLiVg== X-Received: by 2002:a05:690c:7444:b0:78c:326c:81a3 with SMTP id 00721157ae682-78e66b5e1c7mr108055897b3.21.1765841035136; Mon, 15 Dec 2025 15:23:55 -0800 (PST) Received: from ?IPV6:2600:1700:8952:80:404b:45ac:d270:bb24? ([2600:1700:8952:80:404b:45ac:d270:bb24]) by smtp.gmail.com with ESMTPSA id 00721157ae682-78e748cfbf0sm33081467b3.7.2025.12.15.15.23.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Dec 2025 15:23:54 -0800 (PST) Message-ID: <370c13c3-e380-4e31-a6a2-f555e150e65a@gmail.com> Date: Mon, 15 Dec 2025 17:23:48 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PRI?64 vs Visual Studio (2022) To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org References: <20250331.152829.1921392690375275165.horikyota.ntt@gmail.com> <001bdc3b-ef94-4f24-b017-ac8ff0a2ea55@eisentraut.org> <1372793.1763519315@sss.pgh.pa.us> <1377512.1763522154@sss.pgh.pa.us> <1462038.1763567038@sss.pgh.pa.us> <1881391.1765782112@sss.pgh.pa.us> <1991599.1765818338@sss.pgh.pa.us> <2117910.1765823286@sss.pgh.pa.us> <2128694.1765826341@sss.pgh.pa.us> <2259481.1765831157@sss.pgh.pa.us> Content-Language: en-US From: Bryan Green In-Reply-To: <2259481.1765831157@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/15/2025 2:39 PM, Tom Lane wrote: > I wrote: >> Experimenting here, it looks like 'C.UTF-8' might be accepted >> everywhere. I even got it to pass on Solaris's not-GNU gettext, >> which I thought for sure would be the weak spot in the idea. >> I'll press forward with that. > > Hmmm ... the first batch of BF reports show that on some Linux > machines, it works to set lc_messages to 'C.UTF-8', but nonetheless > no translation happens. Did you notice any other gating factors? > > regards, tom lane I should have asked you which version of libintl is being used. I went ahead and jumped to 0.26 and they now gate like this: /* If the current locale value is "C" or "C." or "POSIX", we don't load a domain. Return the MSGID. */ if ((single_locale[0] == 'C' && (single_locale[1] == '\0' || single_locale[1] == '.')) || strcmp (single_locale, "POSIX") == 0) break; -- Bryan Green EDB: https://www.enterprisedb.com