On 9/6/13 9:40 AM, MauMau wrote: > $ psql -d postgres -c "SELECT * FROM a" > ... This outputs, in Japanese, a message meaning "could not open file > "base/xxx/yyy": ???". > > The problem is that strerror() returns "???", which hides the cause of > the trouble. > > The cause is that gettext() called by strerror() tries to convert UTF-8 > messages obtained from libc.mo to ASCII. This is because postgres calls > setlocale(LC_CTYPE, "C") when it connects to the database.
Does anyone know why the PostgreSQL-supplied part of the error message does not get messed up? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers