Re: garbage in psql -l

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Roger Leigh <rleigh(at)codelibre(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: garbage in psql -l
Date: 2009-11-26 04:34:35
Message-ID: 21607.1259210075@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Roger Leigh <rleigh(at)codelibre(dot)net> writes:
> The following patch adds in an nl_langinfo(CODESET) check in
> addition to the existing client encoding check.

I think the consensus is pretty clear that we should just set the
default linestyle to ascii and not try to be cute with it. (I had
already committed a patch to that effect before I saw your message.)

The right way for people who want to see the nice graphics is to put
"\pset linestyle unicode" into their .psqlrc. At this point I think
the only open issue is whether to try to fix things so that .psqlrc
will be executed for non-interactive cases like -c/-l. (Hm, is
.psqlrc executed for "psql -f file"? Should it be?)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian G. Pflug 2009-11-26 04:36:28 Re: ALTER TABLE, find_composite_type_dependencies and locking (Confirmed)
Previous Message KaiGai Kohei 2009-11-26 04:25:22 Re: SE-PgSQL patch review