psql: set \encoding according to the current locale - Mailing list pgsql-bugs

From Martin Pitt
Subject psql: set \encoding according to the current locale
Date
Msg-id 20041031215957.GA19306@box79162.elkhouse.de
Whole thread Raw
Responses Re: psql: set \encoding according to the current locale
List 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

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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: date_trunc problems crossing DST border
Next
From: Josh Berkus
Date:
Subject: Re: could not find /usr/local/timezone