1833776 Members
2395 Online
110063 Solutions
New Discussion

locale

 
SOLVED
Go to solution
jim bidebo
Regular Advisor

locale

How do i change the locale from C to SV_se ? running HP-UX 10.20.
5 REPLIES 5
Victor BERRIDGE
Honored Contributor

Re: locale

Hi,

Do a man of env, you will see things about the variable LANG...

All the best

Victor
James R. Ferguson
Acclaimed Contributor

Re: locale

Hi Jim:

You can do the following:

# LANG=sv_SE.iso885915@euro

To see available locales, type:

# locale -a

To view your current settings, enter:

# locale

To return to the POSIX default, enter:

# LANG=C

Regards!

...JRF...
linuxfan
Honored Contributor

Re: locale

Hi Jim,


You can change the locale variable by setting the value of LANG to the desired language.

locale
(without any options gives your present values)

locale -a
(gives all options available to you)

To set your value to SV_se
try setting your LANG variable to SV_se
export LANG=se_SV.iso88591

For more on locale do a "man 1 locale"

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Wodisch
Honored Contributor
Solution

Re: locale

Hello,

even in HPUX10.20 there is a file in "/etc/rc.config.d/"
where the environment variable $LANG is set...

Do a grep LANG /etc/Rc.config.d/* and modify that file
in the way the others told you.

HTH,
Wodisch
Santosh Nair_1
Honored Contributor

Re: locale

There should be a file /etc/rc.config.d/LANG where you can set the default locale value for your machine. This
file get sourced by all the rc scripts.

-Santosh
Life is what's happening while you're busy making other plans