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 1vVC16-00FUPv-2K for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Dec 2025 17:05:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVC15-001In4-0X for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Dec 2025 17:05:47 +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 1vVC14-001Imw-2o for pgsql-hackers@lists.postgresql.org; Mon, 15 Dec 2025 17:05:47 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVC14-000oqH-0S for pgsql-hackers@lists.postgresql.org; Mon, 15 Dec 2025 17:05:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5BFH5cn61991600; Mon, 15 Dec 2025 12:05:39 -0500 From: Tom Lane To: Thomas Munro cc: Peter Eisentraut , Kyotaro Horiguchi , walther@technowledgy.de, pgsql-hackers@lists.postgresql.org Subject: Re: PRI?64 vs Visual Studio (2022) In-reply-to: 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> Comments: In-reply-to Thomas Munro message dated "Tue, 16 Dec 2025 00:15:36 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1991598.1765818338.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 15 Dec 2025 12:05:38 -0500 Message-ID: <1991599.1765818338@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Mon, Dec 15, 2025 at 8:01 PM Tom Lane wrote: >> What to do now? I could revert 8c498479d and followups, but >> I sure don't want to. A stopgap measure to make the farm look >> green would be to add a variant expected-file that accepts >> this output, but yech. Thoughts? > So close yet so far... I tried asking if it's easy to fix: > https://github.com/sabotage-linux/gettext-tiny/issues/76 Hmm, not sure if you found the live upstream for that project, but if you did, this code hasn't been touched since 2019. Think we shouldn't hold our breath for a fix :-(. I will go add another expected-file. I'm also thinking that maybe we should expand the ambition of that test script a little. Instead of only checking the behavior of PRI* when we can test translation, why not run the ereport's all the time? This would at least test that is sane and snprintf.c agrees with it, which we now know is something worth checking. That's colored by seeing that less than half of the buildfarm is finding any variant of es_ES to test in. That's not great, but I'm not seeing anything to be done about it. The only locale names we can be sure will be accepted are C/POSIX, and I'd expect gettext() to short-circuit that case and not look for a translation. I'm thinking though that it's still worth checking that the untranslated string is processed correctly. regards, tom lane