pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 1584171677@qq.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7811: strlen(NULL) cause psql crash
Date: Tue, 15 Jan 2013 21:15:53 +0200
Message-ID: <50F5AAE9.8050105@vmware.com> (raw)
In-Reply-To: <525.1358277231@sss.pgh.pa.us>
References: <E1Tv7L8-0002Xr-DT@wrigleys.postgresql.org>
	<50F591E4.2080508@vmware.com>
	<29141.1358273456@sss.pgh.pa.us>
	<50F59D30.5090908@vmware.com>
	<29520.1358274561@sss.pgh.pa.us>
	<50F5A779.5060304@vmware.com>
	<525.1358277231@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 15.01.2013 21:13, Tom Lane wrote:
> Heikki Linnakangas<hlinnakangas@vmware.com>  writes:
>> On 15.01.2013 20:29, Tom Lane wrote:
>>> But you already introduced "none" as a stand-alone (and probably almost
>>> untranslatable without context) string.  That's better?
>
>> I figured it would be. One little untranslated string in parens, versus
>> the whole is untranslated. I'm happy to change it if you feel otherwise,
>> though, I don't feel strongly about it myself.
>
> Well, I shouldn't be opining too strongly on translatability issues.
> Other people would have much-better-qualified opinions as to how well
> it'll read if "none" has to be translated by itself.
>
> But as to the behavior when the new message hasn't been translated yet:
> the only case where anyone would see the untranslated message is if they
> were in fact not connected, which we know is a seldom-exercised corner
> case (else this bug would've been noticed long ago).  So it might not be
> worth arguing about.  But ISTM that somebody whose English was weak
> might not grasp that "none" (untranslated) wasn't meant to be a name.

Hmm, I wonder if an empty string would be better? It'd look a bit odd, 
but at least it would not mislead you to think you're connected to a 
database called "none".

- Heikki


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (9+ messages)  latest in thread

Message-ID: <50F5AAE9.8050105@vmware.com>
Permalink:  ../50F5AAE9.8050105@vmware.com/
Also on:    postgresql.org/message-id/50F5AAE9.8050105@vmware.com

 · 

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: hlinnakangas@vmware.com, tgl@sss.pgh.pa.us, 1584171677@qq.com
  Subject: Re: BUG #7811: strlen(NULL) cause psql crash
  In-Reply-To: <50F5AAE9.8050105@vmware.com>
  References: <E1Tv7L8-0002Xr-DT@wrigleys.postgresql.org> <50F591E4.2080508@vmware.com> <29141.1358273456@sss.pgh.pa.us> <50F59D30.5090908@vmware.com> <29520.1358274561@sss.pgh.pa.us> <50F5A779.5060304@vmware.com> <525.1358277231@sss.pgh.pa.us> <50F5AAE9.8050105@vmware.com>

* 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