Re: PRI?64 vs Visual Studio (2022) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: PRI?64 vs Visual Studio (2022)
Date
Msg-id 001bdc3b-ef94-4f24-b017-ac8ff0a2ea55@eisentraut.org
Whole thread Raw
In response to PRI?64 vs Visual Studio (2022)  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List pgsql-hackers
On 31.03.25 08:28, Kyotaro Horiguchi wrote:
> If you're already aware of this and have taken it into account, please
> feel free to ignore this.
> 
> As described in the recent commit a0ed19e0a9e, many %ll? format
> specifiers are being replaced with %<PRI?64>.
> 
> I hadn’t paid much attention to this before, but I happened to check
> how this behaves on Windows, and it seems that with VS2022, PRId64
> expands to "%lld". As a result, I suspect the gettext message catalog
> won't match these messages correctly.

I think this is working correctly.  Gettext has a built-in mechanism to 
translate the %<PRI...> back to the appropriate  %lld or %ld.  See also 
<https://www.gnu.org/software/gettext/manual/html_node/c_002dformat.html>.




pgsql-hackers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: pgsql: Add support for OAUTHBEARER SASL mechanism
Next
From: Daniel Gustafsson
Date:
Subject: Re: pgsql: Add support for OAUTHBEARER SASL mechanism