pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Law <exclusion@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Andrew Dunstan <andrew@dunslane.net>
Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console
Date: Tue, 29 Jan 2013 10:00:12 +0400
Message-ID: <5107656C.1050400@gmail.com> (raw)
In-Reply-To: <5101A1C4.3020407@dunslane.net>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachments:

0001-Fix-postmaster-messages-encoding.patch (text/x-patch, 913B) download From 1e2d5f712744d4731b665724703c0da4971ea41e Mon Sep 17 00:00:00 2001 From: Alexander Lakhin <exclusion@gmail.com> 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

view thread (19+ messages)  latest in thread

Message-ID: <5107656C.1050400@gmail.com>
Permalink:  ../5107656C.1050400@gmail.com/
Also on:    postgresql.org/message-id/5107656C.1050400@gmail.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: exclusion@gmail.com, pgsql-hackers@postgresql.org, magnus@hagander.net, andrew@dunslane.net
  Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console
  In-Reply-To: <5107656C.1050400@gmail.com>
  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> <5107656C.1050400@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox