I try to setup postgress in OS X Lion, and find that is not correctly setup the LOCALE environment var.
This is what is set:
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
I expect something with UTF-8. This is a clean OS X Lion setup, with spanish language. I don’t move anything.
I don’t know how setup it to UTF-8.
In the terminal settings, is check UTF-8 and set LOCALE in open, despite that don’t work.
I noticed the exact same issue when logging onto servers running Red Hat from an OSX Lion machine.
Try adding or editing the
~/.profilefile for it to correctly export your locale settings upon initiating a new session.These two lines added to the file should suffice to set the locale [replace
en_USfor your desired locale, and check beforehand that it is indeed installed on your system (locale -a)].After that, you can start a new session and check using
locale:The following should be the output: