Re: BUG #7493: Postmaster messages unreadable in a Windows console - Mailing list pgsql-hackers

From Tom Lane
Subject Re: BUG #7493: Postmaster messages unreadable in a Windows console
Date
Msg-id 5238.1360635332@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #7493: Postmaster messages unreadable in a Windows console  (Noah Misch <noah@leadboat.com>)
List pgsql-hackers
Noah Misch <noah@leadboat.com> 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



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console
Next
From: Greg Stark
Date:
Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console