Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5207FB5DBCB for ; Sun, 26 Jun 2011 18:41:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 70863-03 for ; Sun, 26 Jun 2011 21:41:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 6366AB5D80A for ; Sun, 26 Jun 2011 18:41:33 -0300 (ADT) Received: (qmail invoked by alias); 26 Jun 2011 21:41:31 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp008) with SMTP; 26 Jun 2011 23:41:31 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19W/A5tJrFWwKjz2Z8TKiGamBbSJCcA/YtYliHYuS fG2BR3W90Jfdt5 Subject: Re: BUG #6066: [PATCH] Mark more strings as c-format From: Peter Eisentraut To: Christoph Berg Cc: pgsql-bugs@postgresql.org In-Reply-To: <20110617111033.GD4130@msgid.df7cb.de> References: <201106170818.p5H8I3ko064877@wwwmaster.postgresql.org> <4DFB137E.4040404@enterprisedb.com> <20110617091114.GC4130@msgid.df7cb.de> <20110617111033.GD4130@msgid.df7cb.de> Content-Type: text/plain; charset="UTF-8" Date: Mon, 27 Jun 2011 00:41:30 +0300 Message-ID: <1309124490.437.0.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/207 X-Sequence-Number: 30586 On fre, 2011-06-17 at 13:10 +0200, Christoph Berg wrote: > Re: To pgsql-bugs@postgresql.org 2011-06-17 <20110617091114.GC4130@msgid.df7cb.de> > > Unfortunately that doesn't help in this case, as the bad string isn't > > tagged as "#, c-format", but still gets used as such. This seems to be > > the case for many errhint() strings. Maybe xgettext should be taught > > to treat all errhint() et al arguments as c-strings. > > Here's a patch to implement that, with backend/nls.mk updated. I have committed a patch based on that, with the other nls.mk filled in as well. Thanks for the idea.