Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvB4Y-0002Dk-58 for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 18:17:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TvB4X-0007tu-Jx for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 18:17:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvB4W-0007t6-FM for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 18:17:16 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvB4T-000691-LM for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 18:17:16 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 398DD28521; Tue, 15 Jan 2013 10:17:10 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 32EB918212; Tue, 15 Jan 2013 10:17:10 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 49C681219C5; Tue, 15 Jan 2013 10:19:20 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-1.vmware.com Received: from zcs-prod-ext-mta-1.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-1.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GK6MweGkW8FC; Tue, 15 Jan 2013 10:19:20 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 210AE1219B7; Tue, 15 Jan 2013 10:19:20 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Tue, 15 Jan 2013 10:19:19 -0800 (PST) Message-ID: <50F59D30.5090908@vmware.com> Date: Tue, 15 Jan 2013 20:17:20 +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> In-Reply-To: <29141.1358273456@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:10, Tom Lane wrote: > Heikki Linnakangas writes: >> I committed a local fix to help.c to print "none" as the database name >> when not connected. > > 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. I'll change that in master, but back-branches? - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs