pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <cb@df7cb.de>
To: pgsql-bugs@postgresql.org
Subject: BUG #6066: Bad string in German translation causes segfault (user-triggerable)
Date: Fri, 17 Jun 2011 08:18:03 GMT
Message-ID: <201106170818.p5H8I3ko064877@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6066
Logged by:          Christoph Berg
Email address:      cb@df7cb.de
PostgreSQL version: 9.1, 9.0, 8.4
Operating system:   any
Description:        Bad string in German translation causes segfault
(user-triggerable)
Details: 

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:

$ diff -c src/backend/po/de.po.orig src/backend/po/de.po
inline patch 1: src/backend/po/de.po (+0/-0 lines) download inline-1.patch*** src/backend/po/de.po.orig 2011-06-17 10:06:41.000000000 +0200 --- src/backend/po/de.po 2011-06-17 10:06:48.000000000 +0200 *************** *** 12318,12324 **** "If your source string is not fixed-width, try using the \"FM\"
modifier." msgstr "" "Wenn die Quellzeichenkette keine feste Breite hat, versuchen Sie den " ! "Modifikator »%s«." #: utils/adt/formatting.c:1886 utils/adt/formatting.c:1899 #: utils/adt/formatting.c:2029 --- 12318,12324 ---- "If your source string is not fixed-width, try using the \"FM\" modifier." msgstr "" "Wenn die Quellzeichenkette keine feste Breite hat, versuchen Sie den " ! "Modifikator »FM«." #: utils/adt/formatting.c:1886 utils/adt/formatting.c:1899 #: utils/adt/formatting.c:2029

view thread (6+ messages)  latest in thread

Message-ID: <201106170818.p5H8I3ko064877@wwwmaster.postgresql.org>
Permalink:  ../201106170818.p5H8I3ko064877@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201106170818.p5H8I3ko064877@wwwmaster.postgresql.org

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: cb@df7cb.de
  Subject: Re: BUG #6066: Bad string in German translation causes segfault (user-triggerable)
  In-Reply-To: <201106170818.p5H8I3ko064877@wwwmaster.postgresql.org>
  References: <201106170818.p5H8I3ko064877@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox