Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 04575B5DBCE for ; Fri, 17 Jun 2011 11:22:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 92989-05 for ; Fri, 17 Jun 2011 14:21:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 40DFEB5DBD6 for ; Fri, 17 Jun 2011 11:21:53 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 5E520348045; Fri, 17 Jun 2011 07:21:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CW7ZNiERdfJ3; Fri, 17 Jun 2011 07:21:51 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.30.33]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 00F8E348044; Fri, 17 Jun 2011 07:21:51 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 89A8E6E5BD; Fri, 17 Jun 2011 10:21:48 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-bugs Subject: Re: BUG #6066: [PATCH] Mark more strings as c-format From: Alvaro Herrera To: Christoph Berg 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> Date: Fri, 17 Jun 2011 10:21:48 -0400 Message-Id: <1308320438-sup-7603@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/147 X-Sequence-Number: 30526 Excerpts from Christoph Berg's message of vie jun 17 07:10:34 -0400 2011: > 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. > > msgfmt -c is already available in the "maintainer-check-po" target. > I'd assume this was called at least once during the release process. Yeah, msgfmt -c is called pretty frequently on the translation service http://babel.postgresql.org. Thanks for the patch, I'll have a look at integrating it. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support