Re: [pgsql-hackers-win32] [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32

2005-01-23 Thread Nicolai Tufar
Greetings, I would like to submit a new version of src/port/snprintf.c It passes regression tests on Linux and Win32 and prints all of %n$ messages finely. I added printf() function too because --help usage-type output is printed with printf(). I have no experience with autoconf so I would

Re: [pgsql-hackers-win32] [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32

2005-01-22 Thread Tom Lane
Nicolai Tufar [EMAIL PROTECTED] writes: On Sat, 22 Jan 2005 15:31:39 +0100, Peter Eisentraut [EMAIL PROTECTED] wrote: Nicolai Tufar wrote: 2. Why would we not just take FreeBSD's vfprintf() and use it instead? Try it. It's painful. src/port/snprintf.c is not not a particularly pretty.

Re: [pgsql-hackers-win32] [HACKERS] %2$, %1$ gettext placeholder replacement is not working under Win32

2005-01-22 Thread Nicolai Tufar
On Sat, 22 Jan 2005 17:05:22 -0500, Tom Lane [EMAIL PROTECTED] wrote: src/port/snprintf.c is not not a particularly pretty. And after my rework it got even uglier. I have looked at FreeBDS's one and it is not *that* complicated. If you can get it to work then it'd be a better bet than