change default Locale


 
Thread Tools Search this Thread
Operating Systems Solaris change default Locale
# 1  
Old 12-01-2010
change default Locale

i have a new solaris 10 enviroment and when i create new users and when i go to login using the default .profile and run
Code:
locale

i get the following
Code:
LANG=
LC_CTYPE=en_IE.ISO8859-15
LC_NUMERIC=en_IE.ISO8859-15
LC_TIME=en_IE.ISO8859-15
LC_COLLATE=en_IE.ISO8859-15
LC_MONETARY=en_IE.ISO8859-15
LC_MESSAGES=C
LC_ALL=

But I want it like this, like i have it on my other servers

LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
[code]


i have compared my /etc/default/init and /etc/profile against the two servers and they are both the same.
if on the new server i run
Code:
 env

the Locales are showing here as well

Code:
HZ=
LC_MONETARY=en_IE.ISO8859-15
SHELL=/usr/bin/bash
TERM=xterm
LC_NUMERIC=en_IE.ISO8859-15
MAIL=/var/mail/pwade
PATH=/usr/bin:
LC_MESSAGES=C
LC_COLLATE=en_IE.ISO8859-15
PWD=/export/home/pwade
TZ=Eire
SHLVL=1
HOME=/export/home/pwade
LOGNAME=pwade
LC_CTYPE=en_IE.ISO8859-15
LC_TIME=en_IE.ISO8859-15
_=/usr/bin/env

i dont want any of the locales here, its affecting some of my applications, i know i could change the default login to set the locales. I have read that changing LANG will do the trick but cant find where i can change this premanently

hope you can help
# 2  
Old 12-01-2010
what locale is in /etc/default/init?
# 3  
Old 12-01-2010
Quote:
Originally Posted by fpmurphy
what locale is in /etc/default/init?
Code:
TZ=Eire
CMASK=022
LC_COLLATE=en_IE.ISO8859-15
LC_CTYPE=en_IE.ISO8859-15
LC_MESSAGES=C
LC_MONETARY=en_IE.ISO8859-15
LC_NUMERIC=en_IE.ISO8859-15
LC_TIME=en_IE.ISO8859-15

but its exacty the same in my other servers. but when i run locale on the other servers i get
Code:
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 - Changing systems default locale

Different in Solaris 10 in that you don't just edit TIMEZONE file. LANG is currently set to en_US.UTF-8 and want it to be C. Heres what I did:- # svccfg -s svc:/system/environment:init setprop environment/LANG = astring: C # svcadm refresh svc:/system/environment And afterwards these are... (7 Replies)
Discussion started by: psychocandy
7 Replies

2. Solaris

Locale changes?

I am upgrading a machine to Solaris 10 and noticed a change that would cause a problem for us. We have always used en_US.ISO8859-1 and selected that when setting up the new system. This is the format on our old system $ date Fri Sep 21 10:35:51 PDT 2012 And this is what I got on our old... (1 Reply)
Discussion started by: Bryan.Eidson
1 Replies

3. UNIX for Dummies Questions & Answers

Need help with Timezone locale.

HI Gurus, I have a issue. One of our applications needs the data loads with the timezone (CST) but our zones run on GMT. I tried to change the TZ value under /etc/default/init value but it seems to effect the the whole zone. Is there any way I can just set up the TZ as CST for a particular user.... (2 Replies)
Discussion started by: rama krishna
2 Replies

4. Solaris

Locale woes

Greetings Forumers! I've been fighting a locale problem on a v490 running Solaris 10 u4 (8/07). When I login to the system, I get several "locale" error messages: user1's password: Last login: Wed May 26 2010 09:14:13 -0400 from system1 You have mail. couldn't set locale correctly couldn't... (0 Replies)
Discussion started by: bluescreen
0 Replies

5. Shell Programming and Scripting

sftp without locale

Hi all, today i encounter one weird problem. I tried to do the sftp of one file from one server to another and try to load that file in some datawarehouse with a informatica(extraction,tranformation and loading tool) . But the tool is rejecting all later i found that there is some problem in... (0 Replies)
Discussion started by: narang.mohit
0 Replies

6. Solaris

Locale installation..

Hi All, I need to install a swedish locale on a solaris machine(ver. 10).I have the package downloaded.Can anyone please guide me through the steps and things i need to keep in mind when doing the same? (7 Replies)
Discussion started by: sankasu
7 Replies

7. Solaris

Installation of locale..

Hi All, i am pretty new to sun solaris env.I need to install a french locale onto my machine.Could you please guide me through the steps. (1 Reply)
Discussion started by: sankasu
1 Replies

8. Solaris

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: ... (1 Reply)
Discussion started by: m223464
1 Replies

9. UNIX for Dummies Questions & Answers

Using locale

:confused: Can anyone tell me how to test that locale is working properly in commands like awk, basename, bg, cd, cmp, col, command, csplit, cut, echo, egrep For ex. suppose I have changed locale using LC_ALL=german_germany.8859 export LC_ALL now i want to test(see) it's effect on... (3 Replies)
Discussion started by: alodha
3 Replies

10. UNIX for Dummies Questions & Answers

How to change locale ?

Hi, I have Solaris 7 installed. When I give the command 'locale' from the box, I am getting all the environment variables as 'de' ! I want it to be in English. How do I change the locale ?? TIA, Srinivas. (1 Reply)
Discussion started by: snsrini
1 Replies
Login or Register to Ask a Question