snprintf() argument reordering not working under Windows in 8.1

Поиск
Список
Период
Сортировка
От Nicolai Tufar
Тема snprintf() argument reordering not working under Windows in 8.1
Дата
Msg-id d80929390512030518l19adc3dcp@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Greetings,

Last April we have made some changes to src/ports/snprintf.c so that it
would support argument reordering like %2$s, %1$d and such on
platforms where original snprintf() does not support it, like Windows,
HP-UX or NetBSD.

NLS messages of some languages, like Turkish, rely heavily on argument
reordering because of the language structure. In 8.1 Turkish messages
in Windows version are all broken because argument reordering is not there.

I examined commit logs and came to conclusion that src/port/snprintf.c
is not included in server when compiling under Windows because of change
to src/port/Makefile made in revision 1.28 by Bruce Momjian.  See here:

http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/Makefile

Comment to the commit says:
`No server version of snprintf needed, so remove Makefile rule.'
In fact I think we need snprintf in server because NLS messages are
printed by the server.


Kindest regards,
Nicolai Tufar


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Striping CLOG and Subtrans
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Reducing relation locking overhead