Re: 64 bit numbers vs format strings

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: 64 bit numbers vs format strings
Дата
Msg-id 3d0a9c36-6158-4736-9793-c4e0c7c78807@eisentraut.org
обсуждение исходный текст
Ответы Re: 64 bit numbers vs format strings
Список pgsql-hackers
On 05.12.24 23:18, Thomas Munro wrote:
> Having learned some things about gettext based on clues[1] from Peter
> E, I decided to see what it would take to expunge all (long long) and
> similar casts now that we're using the standard types with system
> support.
> 
> The short version is tha given uint64 x:
> 
>      Old: errmsg("hello %llu", (unsigned long long) x)
>      New: errmsg("hello %" PRIu64, x)

I have committed the subset of this patch for pg_checksums.c so that the 
translators and whoever else might be affected can try this out at small 
scale.  (I don't expect any particular problems.)  Then we can move on 
to the rest in a few weeks, I think.




В списке pgsql-hackers по дате отправления: