4

I have a PostgreSQL 8.4 database, installed with Japanese as the main language. I am connecting from an English Windows 7 client using psql.exe. Is there any way to change the UI of the messages shown to me (e.g. the help, column headers from the \l command, etc) to English?

I know that I can set the character encoding using \encoding, but I really want to change the UI language from ja_JP to en_US (or similar).

I can't see anything in the psql documentation. Any ideas?

brofield
  • 211

2 Answers2

6

In Windows also, psql only looks at the LC_MESSAGES environment variable. Therefore this works...

set LC_MESSAGES=C
psql.exe
xji
  • 808
brofield
  • 211
0

I ran into the same problems. I tried to set locale properly during PostgreSQL installation, tried to change postgresql.conf but nothing helped to change the language in psql. Found out the UI language of psql.exe is controlled by environment variables in Windows. But set LC_MESSAGES=C modifies only current shell variable and it is saved temporarily, so as soon as you close the shell (or restart PC), your issue is back.

These 4 options change the UI language of psql.exe to English and make sure to keep this setting persistently to avoid returning of the issue: