Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U04FA-00036X-0I for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2013 06:00:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U04F9-0000Pv-2X for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2013 06:00:27 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U04F7-0000Pq-BL for pgsql-hackers@postgresql.org; Tue, 29 Jan 2013 06:00:25 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U04F4-0002Aj-UB for pgsql-hackers@postgresql.org; Tue, 29 Jan 2013 06:00:24 +0000 Received: by mail-lb0-f179.google.com with SMTP id j14so264218lbo.10 for ; Mon, 28 Jan 2013 22:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type; bh=yU1mdcgxIlW7u6Da3RBg5BcNnpT6xYp3lpRZ2lNp1v8=; b=Qn5xBu7bzTbLWMyoVv/fwFsh6ReCiZU32bkp7d+baRo0+izvYw/jMDJ7XvPbOKKPDS whSJueCCwozoCLiNLjDVG1V9w+figqME+6X5rx0TPSAwVD04ZjNE3ymOBPe1Ars+yl/R bDXkmMb3/mTaMLXk9GpIjV6Z2gXEuQmpjCLhQe9C0GQawP4lVs2sJvbNyD2t7Vh/dW6l k0n75FeXcDzQZ6E0t1lnnmgct1RAMg1sXaYDTVTZLqTDzkkuGUbox3mlFHpb8mS/jbw+ wTTAG4ac//5WgudzPvGSnpnx3RarwdaidxrWeINI8cqBYUTzLIh9+yj8fdMHG8V4nFTb 1npw== X-Received: by 10.112.44.161 with SMTP id f1mr292849lbm.29.1359439221294; Mon, 28 Jan 2013 22:00:21 -0800 (PST) Received: from [1.0.0.7] ([94.138.26.200]) by mx.google.com with ESMTPS id oy10sm4435559lab.8.2013.01.28.22.00.18 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jan 2013 22:00:20 -0800 (PST) Message-ID: <5107656C.1050400@gmail.com> Date: Tue, 29 Jan 2013 10:00:12 +0400 From: Alexander Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: pgsql-hackers CC: Magnus Hagander , Andrew Dunstan Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console References: <1332187409-sup-4631@alvh.no-ip.org> <4F68DF76.1030609@gmail.com> <20121010110555.GA21405@tornado.leadboat.com> <507A5D18.3080107@gmail.com> <20121015094136.GA4627@tornado.leadboat.com> <20121015233817.GC13670@tornado.leadboat.com> <20121018154650.GA3763@alvh.no-ip.org> <51001879.3000207@gmail.com> <5100F3F6.3050107@2ndQuadrant.com> <51013C2C.5020703@dunslane.net> <20130124161954.GA2448@tornado.leadboat.com> <5101A1C4.3020407@dunslane.net> In-Reply-To: <5101A1C4.3020407@dunslane.net> Content-Type: multipart/mixed; boundary="------------080402010302080409010502" X-Pg-Spam-Score: -2.6 (--) 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 This is a multi-part message in MIME format. --------------080402010302080409010502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, Thanks for fixing bug #6510! Please look at the following l10n bug: http://www.postgresql.org/message-id/502A26F1.6010109@gmail.com and the proposed patch. Best regards, Alexander --------------080402010302080409010502 Content-Type: text/x-patch; name="0001-Fix-postmaster-messages-encoding.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fix-postmaster-messages-encoding.patch" From 1e2d5f712744d4731b665724703c0da4971ea41e Mon Sep 17 00:00:00 2001 From: Alexander Lakhin Date: Mon, 28 Jan 2013 08:19:34 +0400 Subject: Fix postmaster messages encoding --- src/backend/main/main.c | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 src/backend/main/main.c diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 1173bda..b79a483 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -89,6 +89,12 @@ main(int argc, char *argv[]) pgwin32_install_crashdump_handler(); #endif + /* + * Use the platform encoding until the process connects to a database + * and sets the appropriate encoding. + */ + SetDatabaseEncoding(GetPlatformEncoding()); + /* * Set up locale information from environment. Note that LC_CTYPE and * LC_COLLATE will be overridden later from pg_control if we are in an -- 1.7.10.4 --------------080402010302080409010502 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --------------080402010302080409010502--