| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера