Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBzA-0004Cq-Hi for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 19:15:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TvBz9-00037B-Oi for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 19:15:47 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBz9-000376-3I for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 19:15:47 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBz6-0004ih-9O for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 19:15:45 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 817A528532; Tue, 15 Jan 2013 11:15:43 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 76796B0590; Tue, 15 Jan 2013 11:15:43 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 6AFE4C153A; Tue, 15 Jan 2013 11:15:43 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c7i5JbxzfoBd; Tue, 15 Jan 2013 11:15:43 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 408F0C1524; Tue, 15 Jan 2013 11:15:43 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Tue, 15 Jan 2013 11:15:42 -0800 (PST) Message-ID: <50F5AAE9.8050105@vmware.com> Date: Tue, 15 Jan 2013 21:15:53 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 MIME-Version: 1.0 To: Tom Lane CC: 1584171677@qq.com, pgsql-bugs@postgresql.org Subject: Re: BUG #7811: strlen(NULL) cause psql crash References: <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> In-Reply-To: <525.1358277231@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 15.01.2013 21:13, Tom Lane wrote: > Heikki Linnakangas 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