Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable)

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Cc: Christoph Berg <cb(at)df7cb(dot)de>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable)
Date: 2011-06-17 08:42:38
Message-ID: 4DFB137E.4040404@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 17.06.2011 11:22, Bernd Helmle wrote:
> --On 17. Juni 2011 08:18:03 +0000 Christoph Berg <cb(at)df7cb(dot)de> 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Christoph Berg 2011-06-17 09:11:14 Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable)
Previous Message Bernd Helmle 2011-06-17 08:22:40 Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable)