Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1D78FB5DBD6 for ; Fri, 17 Jun 2011 05:42:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 90578-08 for ; Fri, 17 Jun 2011 08:42:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og109.obsmtp.com (exprod7og109.obsmtp.com [64.18.2.171]) by mail.postgresql.org (Postfix) with ESMTP id 139FBB5DBEC for ; Fri, 17 Jun 2011 05:42:44 -0300 (ADT) Received: from mail-ew0-f54.google.com ([209.85.215.54]) (using TLSv1) by exprod7ob109.postini.com ([64.18.6.12]) with SMTP ID DSNKTfsThN7dIuWAiPwy1yVB9QuEZ4ITsTLr@postini.com; Fri, 17 Jun 2011 01:42:45 PDT Received: by ewy1 with SMTP id 1so1786788ewy.27 for ; Fri, 17 Jun 2011 01:42:42 -0700 (PDT) Received: by 10.213.28.206 with SMTP id n14mr772983ebc.25.1308300162583; Fri, 17 Jun 2011 01:42:42 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id a45sm2025939eec.9.2011.06.17.01.42.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Jun 2011 01:42:40 -0700 (PDT) Message-ID: <4DFB137E.4040404@enterprisedb.com> Date: Fri, 17 Jun 2011 11:42:38 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.17) Gecko/20110510 Icedove/3.1.10 MIME-Version: 1.0 To: Bernd Helmle CC: Christoph Berg , pgsql-bugs@postgresql.org Subject: Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable) References: <201106170818.p5H8I3ko064877@wwwmaster.postgresql.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/140 X-Sequence-Number: 30519 On 17.06.2011 11:22, Bernd Helmle wrote: > --On 17. Juni 2011 08:18:03 +0000 Christoph Berg wrote: > >> In German locale, the follow statement causes vsnprintf() to segfault >> when >> printing the hint: >> >> SELECT TO_DATE('30.12.2011', 'YYYYMMDD') AS datum; >> >> Fix tested for 8.4: > > Additionally, this seems to be the case for 9.0, 9.1 and current -HEAD, > too. So, this is a case where the untranslated string doesn't have a %s in it, but the translated one does. We should have a way to check those automatically. In fact, I'm surprised if someone somewhere hasn't already written such a script, as gettext is used very widely. Anyone want to research/write a script? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com