Re: A couple of gripes about the gettext plurals patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A couple of gripes about the gettext plurals patch
Date
Msg-id 17698.1243457238@sss.pgh.pa.us
Whole thread Raw
In response to Re: A couple of gripes about the gettext plurals patch  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On Tuesday 26 May 2009 21:05:29 Tom Lane wrote:
>> I experimented with this and found that indeed both format strings are
>> checked ... if you have a reasonably recent libintl.h AND you have
>> specified --enable-nls.  Otherwise it all goes to heck, apparently
>> because the compiler doesn't try to look through our substitute
>> definition
>> 
>> #define ngettext(s,p,n) ((n) == 1 ? (s) : (p))

> I can't reproduce that.  Do you have a concrete example?  Different compiler 
> versions, perhaps?

Hmm, I was experimenting with Fedora 10's gcc (4.3.2) ... what are you
testing?

I don't have the test case anymore but will see if I can reconstruct it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: User-facing aspects of serializable transactions
Next
From: Andrew Gierth
Date:
Subject: Re: search_path vs extensions