Re: BUG #7493: Postmaster messages unreadable in a Windows console

From: Greg Stark <stark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Alexander Law <exclusion(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Magnus Hagander <magnus(at)hagander(dot)net>, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: BUG #7493: Postmaster messages unreadable in a Windows console
Date: 2013-02-12 03:22:17
Message-ID: CAM-w4HOpZfoaXwS8Tb114XaXS=3psLBFqaWb0ZZFG2keS+CbdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general pgsql-hackers

On Sun, Feb 10, 2013 at 11:47 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> If we knew that postgresql.conf was stored in, say, UTF8, then it would
> probably be possible to perform encoding conversion to get string
> variables into the database encoding. Perhaps we should allow some
> magic syntax to tell us the encoding of a config file?
>
> file_encoding = 'utf8' # must precede any non-ASCII in the file

If we're going to do that we might as well use the Emacs standard
-*-coding: latin-1;-*-

But that said I'm not sure saying the whole file is in an encoding is
the right approach. Paths are actually binary strings. any encoding is
purely for display purposes anyways. Log line formats could be treated
similarly if we choose.

Hostnames would need to be in a particular encoding if we're to
generate punycode I think but I think that particular encoding would
have to be UTF8. Converting from some other encoding would be error
prone and unnecessarily complex.

What parts of postgresql.conf are actually encoded strings that need
to be (and can be) manipulated as encoded strings?

--
greg

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message kensanmail 2013-02-12 07:57:56 BUG #7868: Different class on numeric number through PgOleDb-1.0.0.20
Previous Message Tom Lane 2013-02-12 02:15:32 Re: BUG #7493: Postmaster messages unreadable in a Windows console

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2013-02-12 03:44:47 Re: Installing Postgress 8.0.5 in Ubuntu 10.12
Previous Message Adrian Klaver 2013-02-12 03:11:13 Re: Installing Postgress 8.0.5 in Ubuntu 10.12

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2013-02-12 03:54:19 Re: Re: Proposal for Allow postgresql.conf values to be changed via SQL [review]
Previous Message Tom Lane 2013-02-12 02:15:32 Re: BUG #7493: Postmaster messages unreadable in a Windows console