Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBHD-0002d8-3R for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 18:30:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TvBHC-0005cH-K0 for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Jan 2013 18:30:22 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBGH-0005Sn-23 for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 18:29:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBGF-0006Ju-7q for pgsql-bugs@postgresql.org; Tue, 15 Jan 2013 18:29:24 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0FITL96029521; Tue, 15 Jan 2013 13:29:21 -0500 (EST) From: Tom Lane To: Heikki Linnakangas cc: 1584171677@qq.com, pgsql-bugs@postgresql.org Subject: Re: BUG #7811: strlen(NULL) cause psql crash In-reply-to: <50F59D30.5090908@vmware.com> References: <50F591E4.2080508@vmware.com> <29141.1358273456@sss.pgh.pa.us> <50F59D30.5090908@vmware.com> Comments: In-reply-to Heikki Linnakangas message dated "Tue, 15 Jan 2013 20:17:20 +0200" Date: Tue, 15 Jan 2013 13:29:21 -0500 Message-ID: <29520.1358274561@sss.pgh.pa.us> X-Pg-Spam-Score: -1.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 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? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs