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 1vVCJU-00FevU-23 for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Dec 2025 17:24: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 1vVCJS-001P3w-2e for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Dec 2025 17:24:47 +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.96) (envelope-from ) id 1vVCJS-001P3m-1R for pgsql-hackers@lists.postgresql.org; Mon, 15 Dec 2025 17:24:47 +0000 Received: from mail-yx1-xb133.google.com ([2607:f8b0:4864:20::b133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vVCJQ-000tcJ-1M for pgsql-hackers@lists.postgresql.org; Mon, 15 Dec 2025 17:24:46 +0000 Received: by mail-yx1-xb133.google.com with SMTP id 956f58d0204a3-6432842cafdso3387861d50.2 for ; Mon, 15 Dec 2025 09:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765819482; x=1766424282; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=uAzu/AjllnF5PYTGKRoj5pqAitsJQziWt/JEZv5VQpk=; b=h0GUxJLfBNRMoLCWWl/OITwiHgtr4HJ7I2NzimYMOSw+i8AOTCeDG1NkevF5AZaZLN omxusMpeGG7rA1B7mWXx1/gsrNyvihgBFWL+kTHQ4bVkigeVkFCu/pti5ZVY/aZ74spa Uo0k2Snhkqbx+37cNeqvcm/EzF8u+bWTE6jTf1QR2l+NnQp5TFbMYF7Lx9zB5A7DBCue 74xzopKCi8UMd7wygEf2UOwGnU8q9VM2y4w7Lddilijf2LAVF3677uwI+oz/QIJSUvge 7Uu5xS8oZdBSlqQ6ruXgArXFzZ1lNN2b3qiXMrRqPLUctdNgiUw8lDtRcmaZUSr/JyF7 pPXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765819482; x=1766424282; h=content-transfer-encoding:in-reply-to:from:content-language :references: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=uAzu/AjllnF5PYTGKRoj5pqAitsJQziWt/JEZv5VQpk=; b=HW/aUZjI7afklul3UvistzsDHsbN7XfOFPKznAdk23iCaNNsB0dYYDUPgrEiWQcSFU Q6+eQ4k3wnUHu31Kf1bQCm4iHsQ9QfDnxuQC4U7azJ7BNBbzzKI5D6pdbx1o0hv3CJN1 2E97+4gJBBTElFt5+QrcHmrbwiQSXqllPXymrNCdLBVp+Lddo4X4Op4/XvPgtIpApyDO TYIKkjqfPTEkDln9U8AcOO1BelSqUQaW1UOX0bxwcJpwPO+uN3kKSWH3rUiRDgFl7jNH w09Yjdcd+6VqSeH7mVLCXt2sOoeX1oFtpynfQ9SNvSDkskDG2xsSIgOIzKp+cxor8807 5kqw== X-Gm-Message-State: AOJu0YzkEmnTiKR/1WMrRNAhP6q51u0CGis4txFGQhfg8pRk+8KPZ/u/ TKmGTbq4SQUdHl8RlTf7ZfRmQwM9p/cfBPeMVCX6BnBaC++8WMGR190k1IKnmb+o X-Gm-Gg: AY/fxX57phQjSNucuZjkodMKWHHsi6zmqSNFXz96dHJlKUgIhtDCmNeqzM/2v9On8Oj ZKu3L7m30dUBIiFxZwvVXHV2IoyXHWK5W/F8B8/yO7YMa6qNCMc99HEXFrGqThskjceiRckPOCS LSeVnDhheiZ8nA0CQ8hYVc8/JdzUFYYJ81raWMlfdMvgefT05qJ3+X17T3TD+4uBYWF4v15ltbc AicPnW6g8LFGcHyklwOxgQBspHjYvyJ+lwg6LERSWlYJDQhiC60H6tXM5M2jfbYU40YYqCX/wt/ 4XyogaUJvH6uBqY8ZBI6Z8tjHImBYYoKm1SM9r28G99fL5XY7UBlQ591bGprmVGoNm/IvBo5Ux3 fAu6iHmQvkk0BHpYw5ZnUUBFSAwFrFaqd1xHOeOoZzbOi+6lhgRBKCvP+X1QyOR4fuUFnA+ziTg QcFaSCm2mdRmpTqtCwJ9W+4RvX8DkF7TappA/JQVexomXgTyIu6JbjrGKPSrX4JsNr3NY429DeV kI= X-Google-Smtp-Source: AGHT+IGnqLL9fY5Ee8m0bxlex44VEAcGqLf4kL0ksjoK0TtmQxTaYCZnAlM9nSE848uFQQMM4VIJWw== X-Received: by 2002:a05:690e:4106:b0:642:84a:7ba4 with SMTP id 956f58d0204a3-6455567b952mr9286007d50.85.1765819481557; Mon, 15 Dec 2025 09:24:41 -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 956f58d0204a3-64477db6094sm6626454d50.19.2025.12.15.09.24.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Dec 2025 09:24:40 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2025 11:24:34 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PRI?64 vs Visual Studio (2022) To: 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> Content-Language: en-US From: Bryan Green In-Reply-To: <1991599.1765818338@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/15/2025 11:05 AM, Tom Lane wrote: > 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 > > The GNU gettext implementation does not short-circuit that. It still goes through the path of trying to find the message catalogue, it fails, there is no fallback, messages are untranslated. This is true on Windows as well as Linux. Windows just has the curse of an expensive call to enumerate the locales to find the passed in locale every single time because of the failure to cache the unfound case. -- Bryan Green EDB: https://www.enterprisedb.com