Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression tests

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression tests
Дата
Msg-id 200503021717.14766.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression tests  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression
Список pgsql-patches
Am Mittwoch, 2. März 2005 16:50 schrieb Bruce Momjian:
> Right.  It is Unix that has the problem.  It seems we are supplying a
> special snprintf() only so gettext() in libintl will use ours instead of
> the operating system's.  Isn't there a way to target just that library
> for our replacement snprintf()?  Our code itself doesn't need the
> positional parameters.

No, it's exactly our code that needs the snprintf().  libintl does not need
it.

> Could we read the snprintf translation string and process positional
> parameters _before_ we sent it to gettext()?

That would defeat the entire point of this exercise.  Then translators would
have to translate each possible substitution separately and we wouldn't need
positional parameters at all.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression tests
Следующее
От: Mark Wong
Дата:
Сообщение: Re: WIP: buffer manager rewrite (take 2)