psql: set \encoding according to the current locale

From: Martin Pitt <martin(at)piware(dot)de>
To: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Cc: 223272(at)bugs(dot)debian(dot)org
Subject: psql: set \encoding according to the current locale
Date: 2004-10-31 21:59:57
Message-ID: 20041031215957.GA19306@box79162.elkhouse.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi PostgreSQL developers!

Currently (i. e. in 7.4.6) psql seems to use the default database
encoding as locale for both its own messages and for database output
strings. Whereas it is only an inconvenience for the latter, psql's
own messages should really respect LANG/LC_MESSAGES environment
variables instead of the database encoding.

It would also be nice to call "set \encoding" to match the locale psql
was called under, at least when it is called interactively.

Thanks and have a nice day!

Martin

--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntulinux.org
Debian GNU/Linux Developer http://www.debian.org

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Josh Berkus 2004-10-31 22:47:00 Re: could not find /usr/local/timezone
Previous Message Tom Lane 2004-10-31 15:56:37 Re: date_trunc problems crossing DST border