1836438 Members
2575 Online
110100 Solutions
New Discussion

What is LANG?

 
SOLVED
Go to solution
Ridzuan Zakaria
Frequent Advisor

What is LANG?

Hi,

Can someone please explain to me what locale "C" means? Does it means US7ASCII is my default characterset? Thanks
$ locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
quest for perfections
4 REPLIES 4
Michael Tully
Honored Contributor

Re: What is LANG?


If LANG is not set (default) your default setting is 7bit coded USASCII character set.
You can set the LANG as you wish (locale -a provides the choices) and you can set them as default in /etc/rc.config.d/LANG file.

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"

Anyone for a Mutiny ?
Bill Douglass
Esteemed Contributor
Solution

Re: What is LANG?

C is the default, if LANG is unset or if any of the internationalization variables is invalid. See the locale and lang man pages.

C is equal to POSIX on HP-UX, and defines an environment without NSL (native language support). And yes, it is based on 7-bit USASCII.
Caesar_3
Esteemed Contributor

Re: What is LANG?

Hello!

The LANG and the other that you write here
define your localization language,
the C is the default standart language.
In what you wrote the LANG= -> LANG=C
The LANG env. understand programs and can
run depend on him.
You can change it to difrent language made
the locale, open the terminal with font for
the choosen language and say run date and
you will see the month name on that language.

Caesar
Ridzuan Zakaria
Frequent Advisor

Re: What is LANG?

Thanks guys for your reply.

I have 1 more question to ask. Let say if I logged on to HP-UX server using my Exceed client/or any Terminal emulation software and set LANG=univ.UTF8. Now my session has local language set to UTF8 but the default LANG setup on the server is still C(US7ASCII) because I do not have anything setup in my /etc/rc.config.d/LANG. If I create a file from my UTF8 session. Will the file be saved as UTF8 or US7ASCII format on my HP-UX server.

Thanks.

quest for perfections