How to set solaris locale

localizationsolaris

I am getting the following errors when I execute some commands on Solaris 10.

couldn't set locale correctly

Output of locale command-

LANG=en_US
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

Does LC_ALL need to be set? I don't have root on this machine.. can I specify locale in my rc files?

Best Answer

Locale settings are done via environment variables - you don't need to edit system files unless you want to change the defaults for every process on the system. The locale(5) and environ(5) man pages have more details on the various variables that affect locale settings.

locale -a will show the installed locales so you can make sure you've set it to one that's actually there.