Re: [PATCHES] snprintf() argument reordering not working

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, ntufar(at)gmail(dot)com, devrim(at)kivi(dot)com(dot)tr, mha(at)sollentuna(dot)net, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCHES] snprintf() argument reordering not working
Date: 2005-12-05 16:46:53
Message-ID: 200512051646.jB5GkrD08625@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> > With 8.1_RC1 I *do* get the results Nicolai reported. With the changes I
> > made yesterday, I see the result above, i.e. what we expect from our own
> > breakage of sprintf (i haven't yet updated the snapshot I took).
>
> Ah. OK, that makes sense.
>
> > But the simple fix seems to be to use our version of printf and friends.
> > The changes requires are not too invasive.
>
> I agree with doing this even if we weren't faced with (apparently)
> multiple versions of libintl that don't all work alike. My thought is
> that running our own version of snprintf on a heavily used port like
> Windows is exactly what is needed to flush out any remaining bugs.
> It's obviously not gotten enough field usage yet ...
>
> Was the last patch you sent in ready for application, or are you still
> fooling with it?

He is still working on it. It did not handle all *printf functions, as
he mentioned, and he might have other changes.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2005-12-05 17:12:17 Re: generalizing the planner knobs
Previous Message Tom Lane 2005-12-05 16:44:25 Re: [PATCHES] snprintf() argument reordering not working

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-12-05 17:38:17 Reduce NUMERIC size by 2 bytes, reduce max length to 508 digits
Previous Message Tom Lane 2005-12-05 16:44:25 Re: [PATCHES] snprintf() argument reordering not working