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

From Kyotaro Horiguchi
Subject PRI?64 vs Visual Studio (2022)
Date
Msg-id 20250331.152829.1921392690375275165.horikyota.ntt@gmail.com
Whole thread Raw
Responses Re: PRI?64 vs Visual Studio (2022)
List pgsql-hackers
Hello,

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 haven't been able to build with -Dnls=enabled myself, but I did
check the strings embedded in a binary compiled with VS2022, and they
indeed use %lld.

Just wanted to share this in case it’s helpful.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

pgsql-hackers by date:

Previous
From: Andrei Lepikhov
Date:
Subject: Re: Proposal: Progressive explain
Next
From: Alena Rybakina
Date:
Subject: Re: Memoize ANTI and SEMI JOIN inner