Re: MinGW / Windows / printf format specifiers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MinGW / Windows / printf format specifiers
Дата
Msg-id 12457.1455889943@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: MinGW / Windows / printf format specifiers  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Craig Ringer <craig@2ndquadrant.com> writes:
> On 19 February 2016 at 12:15, Chapman Flack <chap@anastigmatix.net> wrote:
>> Have issues like this been dealt with in PostgreSQL code before, and did
>> a favorite approach emerge?

> INT64_FORMAT and UINT64_FORMAT

Yeah.  Note in particular the convention to avoid using those in
translatable strings.  Where necessary, we manage that by using
sprintf(INT64_FORMAT) into a buffer variable and then printing
the buffer with %s in the translatable message.  Grotty, but there
seems no other way that doesn't result in platform-dependent
translatable strings.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Typo in bufmgr.c that result in waste of memory
Следующее
От: David Steele
Дата:
Сообщение: Re: PostgreSQL Audit Extension