From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Greg Stark <stark(at)mit(dot)edu> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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-14 16:45:53 |
Message-ID: | 511D14C1.1040100@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general pgsql-hackers |
On 2/11/13 10:22 PM, Greg Stark wrote:
> 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;-*-
Yes, or more generally perhaps what Python does:
http://docs.python.org/2.7/reference/lexical_analysis.html#encoding-declarations
(In Python 2, the default is ASCII, in Python 3, the default is UTF8.)
> 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.
Well, at some point someone is going to open a configuration file in an
editor, and the editor will usually only be table to deal with one
encoding per file. So we need to make that work, even if technically,
different considerations apply to different settings.
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2013-02-14 16:57:01 | Re: BUG #7493: Postmaster messages unreadable in a Windows console |
Previous Message | andrew | 2013-02-14 13:30:27 | BUG #7881: SQL function failures in long-lived calling contexts |
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2013-02-14 16:57:01 | Re: BUG #7493: Postmaster messages unreadable in a Windows console |
Previous Message | Tom Lane | 2013-02-14 15:29:11 | Re: Query becomes slow when written as view |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-02-14 16:49:53 | Re: proposal or just idea for psql - show first N rows from relation backslash statement |
Previous Message | Stephen Frost | 2013-02-14 16:41:20 | Re: proposal or just idea for psql - show first N rows from relation backslash statement |