Couldn't set locale correctly

Hello,

I have a recently configured machine that when log into it as a user or remotely as root it displays "Couldn't set locale correctly"

When I type locale it displays the below which is wrong compared to other machines

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

If anyone has any pointers it would be appreciated

thanks,
will

I guess that LANG was forced to be =C.
You may change these in "/etc/default/init" or you can export LANG variable in /etc/profile or in $HOME/.profile :

LANG=en_US.UTF-8

Export LANG

Then it should look like this :

Hello,
I have the same problem on Solaris 10 x86 but even if I "export LANG=en_US.UTF-8" it doesn't help:

$ locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=


$export LANG=en_US.UTF-8

$ locale
LANG=en_US.UTF-8
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

I'm still getting a lot of "couldn't set locale correctly" all the time.

Edit: the "en_US.UTF-8" was not present in /usr/lib/locale/ so I used "en_GB.UTF-8" instead

$ export LANG=en_GB.UTF-8
$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_ALL=

but still I'm getting the warn messages :frowning:
Thanks Tex

Did you guys modify the /etc/TIMEZONE file as well?

well it is a sym link to /etc/default/init:

lrwxrwxrwx   1 root     root          14 Apr 23  2008 /etc/TIMEZONE -> ./default/init

so yes, it is modified as well.

Which Solaris OS? Did you try restarting the service or rebooting the system?

I have Solaris 10 x86. I tried to reboot and the messages are still there.

There could be missing packages that are needed for the locale, or the packages could be loaded and corrupted, or only partially installed.
This is a problem that is specific to the Solaris Operating Environment. Contact Solaris Technical Support for further assistance.

If not try this:
setenv LC_ALL [locale]
type locale and check the value again for LC_ALL.