Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LC_ALL & LANG are set OK, but others couldn't set locale correctly.

902380Mar 12 2012 — edited Mar 19 2012
Hi,

I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want (HAVE) to change it to en_US.UTF-8. Trying to install OBIEE and it won't let me do it unless I have the US locale set (and it also confirms this in the documentation)

With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8".

Problem is even with LC_ALL set in etc/default/init, the others LC_* default to "C" after a reboot and throw up the "couldn't set locale correctly" error. I've added each LC_* manually to the init file but get the same result so I've removed those.

Below are some outputs I'm getting. Tried everything I can think of/google.

-----

Code:
+# 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=en_US.UTF-8


+# vi init+
+"init" [Read only] 21 lines, 741 characters+
+#+
+# Copyright 1992, 1999-2002 Sun Microsystems, Inc. All rights reserved.+
+# Use is subject to license terms.+
+#+
+#ident "@(#)init.dfl 1.7 02/12/03 SMI"+
+#+
+# This file is /etc/default/init. /etc/TIMEZONE is a symlink to this file.+
+# This file looks like a shell script, but it is not. To maintain+
+# compatibility with old versions of /etc/TIMEZONE, some shell constructs+
+# (i.e., export commands) are allowed in this file, but are ignored.+
+#+
+# Lines of this file should be of the form VAR=value, where VAR is one of+
+# TZ, LANG, CMASK, or any of the LC_* environment variables. value may+
+# be enclosed in double quotes (") or single quotes (').+
+#+
+TZ=Australia/NSW+
+CMASK=022+
+LC_ALL="en_US.UTF-8";+
+LANG="en_US.UTF-8";+


+#localeadm -q en_US.UTF-8+
+couldn't set locale correctly+

+locale/region name is en_us+

+Warning! You have chosen the en_US.UTF-8 locale rather than a region to check.+
+This locale is part of the North America region. If you choose to continue, this region will be checked.+

+Do you wish to continue? [y/n]: y+
+Checking for North America region (nam)+
+(c_solaris packages)+
+|...|+

+All packages found.+

+Checking for North America region (nam)+
+(solaris1 packages)+
+|.......................|+

+All packages found.+

+Checking for North America region (nam)+
+(solaris2 packages)+
+|.........|+

+All packages found.+

+Checking for North America region (nam)+
+(solaris3 packages)+
+|.|+

+All packages found.+

+Checking for North America region (nam)+
+(solaris4 packages)+
+|Checking for North America region (nam)+
+(solaris5 packages)+
+|.....|+

+All packages found.+

+Checking for North America region (nam)+
+(langcd1 packages)+
+|....................................................................................................|+

+All packages found.+

+Checking for North America region (nam)+
+(langcd2 packages)+
+|The North America region (nam) is installed on this system+

+locale -a shows en_US.UTF-8 as present.+

-----

I'm new to Solaris/Unix so try to keep answers simple and step by step. Any help would be appreciated !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2012
Added on Mar 12 2012
2 comments
2,313 views