Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U55PJ-0005y7-Bd for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2013 02:15:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U55PI-0002cH-Sq for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2013 02:15:40 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U55PI-0002c6-00 for pgsql-hackers@postgresql.org; Tue, 12 Feb 2013 02:15:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U55PD-0008UK-Bl for pgsql-hackers@postgresql.org; Tue, 12 Feb 2013 02:15:39 +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 r1C2FWjc005239; Mon, 11 Feb 2013 21:15:32 -0500 (EST) From: Tom Lane To: Noah Misch cc: Alexander Law , pgsql-hackers , Magnus Hagander , Andrew Dunstan Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console In-reply-to: <20130212021045.GA7600@tornado.leadboat.com> References: <5100F3F6.3050107@2ndQuadrant.com> <51013C2C.5020703@dunslane.net> <20130124161954.GA2448@tornado.leadboat.com> <5101A1C4.3020407@dunslane.net> <5107656C.1050400@gmail.com> <28316.1359471244@sss.pgh.pa.us> <20130130015155.GD3524@tornado.leadboat.com> <5108B6E1.9070503@gmail.com> <20130210210259.GA7401@tornado.leadboat.com> <16160.1360540050@sss.pgh.pa.us> <20130212021045.GA7600@tornado.leadboat.com> Comments: In-reply-to Noah Misch message dated "Mon, 11 Feb 2013 21:10:45 -0500" Date: Mon, 11 Feb 2013 21:15:32 -0500 Message-ID: <5238.1360635332@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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Noah Misch writes: > On Sun, Feb 10, 2013 at 06:47:30PM -0500, Tom Lane wrote: >> The key problem, ISTM, is that it's not at all clear what encoding to >> expect the incoming data to be in. I'm concerned about trying to fix >> that by assuming it's in some "platform encoding" --- for one thing, >> while that might be a well-defined concept on Windows, I don't believe >> it is anywhere else. > GetPlatformEncoding() imposes a sufficiently-portable definition. I just > don't think that definition leads to a value that can be presumed desirable > and adequate for postgresql.conf. Nah, GetPlatformEncoding is utterly useless for this purpose --- restart the server with some other environment, and bad things will happen. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers