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

From: Christoph Berg <cb(at)df7cb(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable)
Date: 2011-06-17 09:11:14
Message-ID: 20110617091114.GC4130@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Re: Heikki Linnakangas 2011-06-17 <4DFB137E(dot)4040404(at)enterprisedb(dot)com>
> 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?

Actually, msgfmt can do that itself with -c. This can be set in
Makefile.global:

$ grep MSGFMT src/Makefile.global
MSGFMT = msgfmt -c

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.

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marinos Yannikos 2011-06-17 09:28:12 Ident authentication fails due to bind error on server (8.4.8)
Previous Message Heikki Linnakangas 2011-06-17 08:42:38 Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable)