The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
command to change duplex settings.. sag71155 HP-UX 2 03-23-2008 12:21 PM
Couldn't set locale correctly Mr Pink SUN Solaris 1 05-02-2007 05:02 AM
How to change root's .profile settings FredSmith UNIX for Dummies Questions & Answers 1 08-07-2006 11:57 AM
Using locale alodha UNIX for Dummies Questions & Answers 3 02-15-2005 12:32 PM
How to change locale ? snsrini UNIX for Dummies Questions & Answers 1 11-26-2000 10:43 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2005
Registered User
 

Join Date: Mar 2005
Posts: 41
Stumble this Post!
how do I change locale settings?

I support a product which writes to log files and it's currently formatting the date in US format. I've established this is due to these settings:

account1# locale -k d_fmt t_fmt
d_fmt="%m/%d/%y"
t_fmt="%H:%M:%S"

If I log on with a different account the settings are different:

account2# locale -k d_fmt t_fmt
d_fmt="%d/%m/%y"
t_fmt="%r"

Does anyone know where these setting are defined?

I don't know if it's relevant but the LC_ variables exist for both accounts are the same:

account1$ set
LC_COLLATE=en_GB.ISO8859-1
LC_CTYPE=en_GB.ISO8859-1
LC_MESSAGES=C
LC_MONETARY=en_GB.ISO8859-1
LC_NUMERIC=en_GB.ISO8859-1
LC_TIME=en_GB.ISO8859-1

account2$ set
LC_COLLATE=en_GB.ISO8859-1
LC_CTYPE=en_GB.ISO8859-1
LC_MESSAGES=C
LC_MONETARY=en_GB.ISO8859-1
LC_NUMERIC=en_GB.ISO8859-1
LC_TIME=en_GB.ISO8859-1

Gareth
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-29-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,658
Stumble this Post!
Following are the variables I have changed reflect a new locale such as zhs, jp and fr.

Code:
export LC_ALL=en_GB.ISO8859-1
export LANG=en_GB.ISO8859-1
And you should be done. If you issue locale, it should show the new settings.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0