Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBkx-0003bY-Gc for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 19:01:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TvBkw-000512-OU for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 19:01:06 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBkw-00050t-3T for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 19:01:06 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBku-0004Ok-Dx for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 19:01:05 +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 B03E228465; Tue, 15 Jan 2013 11:01:03 -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 ABFBFB056B; Tue, 15 Jan 2013 11:01:03 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 8E572C154E; Tue, 15 Jan 2013 11:01:03 -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 uJTcabKBHKxj; Tue, 15 Jan 2013 11:01:03 -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 464FAC1533; Tue, 15 Jan 2013 11:01:03 -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:01:02 -0800 (PST) Message-ID: <50F5A779.5060304@vmware.com> Date: Tue, 15 Jan 2013 21:01:13 +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> In-Reply-To: <29520.1358274561@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 20:29, Tom Lane wrote: > Heikki Linnakangas writes: >> On 15.01.2013 20:10, Tom Lane wrote: >>> I think that patch could use more thought. As is, it will print >>> connect to new database (currently "none") >>> which to me is claiming that we are connected to a database whose name >>> is "none". The quotes should not be used in this situation, and in >>> fact it would be better for translatability if the whole message text >>> were specialized to this case. I'd like to see it reading more like >>> connect to new database (currently no connection) > >> Hmm, that'd introduce a new quite visible string into back-branches that >> needs to be translated, which I think we try to avoid. > > 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. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs