Question from AIX guy re language/date settings on Solaris

  • Follow


My question is, what controls character set/language and date format
settings on Solaris?

Does Solaris use $LANG? having installed Solaris there is no $LANG set

The $LANG on my AIX box is en_US

JL
0
Reply johnleslie 10/15/2004 8:35:02 AM

John Leslie <johnleslie@madasafish.com> wrote:
> My question is, what controls character set/language and date format
> settings on Solaris?
> 
> Does Solaris use $LANG? having installed Solaris there is no $LANG set
> 
> The $LANG on my AIX box is en_US

There is LANG, but if you want different settings for the different
LC_.* variables, you do not set it. Type 'locale' for enlightenment.
These variables are probably set in /etc/default/init

Yours,
Laurenz Albe
0
Reply Laurenz 10/15/2004 8:50:21 AM


On Fri, 15 Oct 2004 01:35:02 -0700, John Leslie wrote:

> My question is, what controls character set/language and date format
> settings on Solaris?
> 
> Does Solaris use $LANG? having installed Solaris there is no $LANG set

Yes, but the default (corresponds to "C" locale?) is null, I believe. On
my machines:

	$ locale
	LANG=
	LC_CTYPE="C"
	LC_NUMERIC="C"
	LC_TIME="C"
	LC_COLLATE="C"
	LC_MONETARY="C"
	LC_MESSAGES="C"
	LC_ALL=

> The $LANG on my AIX box is en_US

Set it to whatever you like:

	$ export LANG=en_US

but I suspect you might want to change the entire locale (to change
LC_COLLATE? or some such?)? Have a look at "man locale". You can change it
for your shell, or do something more permanent for the whole box.

Hmm, when I change to LANG=en_US, then "dumpcs" shows something different
(unprintable?) for CS:1 in my ssh/bash session. However, dunno much about
this... like what differences I am supposed to see...

-- 
Juhan Leemet
Logicognosis, Inc.

0
Reply Juhan 10/15/2004 4:23:48 PM

2 Replies
297 Views

(page loaded in 0.086 seconds)

Similiar Articles:







7/27/2012 12:34:32 AM


Reply: