08-15-2011
I think I found a solution.
I edited /etc/default/init and added this:
LC_CTYPE=US.ISO8859-1
LC_NUMERIC=US.ISO8859-1
LC_TIME=US.ISO8859-1
LC_COLLATE=US.ISO8859-1
LC_MONETARY=US.ISO8859-1
LC_MESSAGES=US.ISO8859-1
LC_ALL=US.ISO8859-1
Rebooted, and now everything seems to be fine.
locale command shows:
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=US.ISO8859-1
10 More Discussions You Might Find Interesting
1. Solaris
Hi.. i need to find when solaris os is last installed in server? Is there any command or log files to find installation date (6 Replies)
Discussion started by: vadivukumar
6 Replies
2. Solaris
Hello there ppl,
I thought my question would qualify to be posted in this forum and in Shell scripting forum.
And I swear to God.. there is no discussion on this exact topic anywhere else on the web!
So my script on BASH uses 2 commands:
1) date -d "Fri Mar 06 10:18:16 UTC 2009" +%s
... (1 Reply)
Discussion started by: pavanlimo
1 Replies
3. Shell Programming and Scripting
Hello there ppl,
I thought my question would qualify to be posted in this forum and in Solaris forum.
And I swear to God.. there is no discussion on this exact topic anywhere else on the web!
So my script on BASH uses 2 commands:
1) date -d "Fri Mar 06 10:18:16 UTC 2009" +%s
This... (3 Replies)
Discussion started by: pavanlimo
3 Replies
4. Solaris
Hello,
I have a Sun Solaris 10 installs by default in French.
I do not have CDs of the OS installation.
I have a program use the language en_US.
At connection language chosen is C (en_USxxxx not available)
I open a console $ LANG C
if LANG = en_US I get "could not set correctly local" ... (2 Replies)
Discussion started by: XRay
2 Replies
5. Solaris
Hi All,
Is it possible to run date -d option in Solaris?
Do we have a work around so that -d option will be recognized
by solaris as it is recognized by linux.
I need this since i am using this in scripting and it works in Linux box. my problem is
it doesn't work in solaris box.
... (6 Replies)
Discussion started by: linuxgeek
6 Replies
6. Shell Programming and Scripting
Hi,
I am working on date operations in perl. using following code, I am getting today date as per my required format.
my $date1 = `date '+%m/%d/%Y'`;
can I find day+1 date. (ie. If today is 12/01/2009 then I want to edit above code t find 12/02/2009)
---------- Post updated... (3 Replies)
Discussion started by: gentleDean
3 Replies
7. Solaris
Hi,
I have set the date on solaris system , but the the date is changed after rebooting the system . I was suspecting that it could sync with ntp server , so i disabled the NTP and checked, but still whenever i reboot the system , the date that i set is getting changed, Any idea how to come out... (7 Replies)
Discussion started by: thavamaniraja
7 Replies
8. Solaris
Can someone help me with the command to get yesterday's date on Sun solaris?? (1 Reply)
Discussion started by: sachinkl
1 Replies
9. Solaris
Hi people,
I dont have a real problem, its also a so strange issue.
When i connect to my system from a ssh session or telnet normaly from putty and execute the command "date" its show me the correctly time in BRT format for root and all other users.
But when i connect from the global... (3 Replies)
Discussion started by: anonymouzz
3 Replies
10. Solaris
I have list of dates in a file. Am reading each line and trying to format date, Can you please help me ?
Sample file content:
02/22/16 USA is great country
02/21/16 USA future
02/23/16 who is he
I want to read each line from above file and format date as below
2016-02-21 (i.e., using... (1 Reply)
Discussion started by: prince1987
1 Replies
LEARN ABOUT HPUX
nl_langinfo
nl_langinfo(3C) nl_langinfo(3C)
NAME
nl_langinfo() - language information
SYNOPSIS
DESCRIPTION
returns a pointer to a null-terminated string containing information relevant to a particular language or cultural area defined in the pro-
gram's locale (see setlocale(3C)). The manifest constant names and values of are defined in For example:
returns a pointer to the string ``Dom'' if the language identified by the current locale is pt_PT.iso88591, and ``Su'' if the identified
language is fi_FI.iso88591.
If an invalid is specified, a pointer to an empty string is returned. An empty string can also be returned for a valid if that item is not
applicable to the language or customs of the current locale. For example, a thousands separator is not used when writing numbers according
to the customs associated with the Arabic language.
EXTERNAL INFLUENCES
Locale
The string returned for a particular is determined by the locale category specified for that item in langinfo(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
WARNINGS
returns a pointer to a static area that is overwritten on each call.
AUTHOR
was developed by OSF and HP.
SEE ALSO
localeconv(3C), setlocale(3C), lang(5), langinfo(5).
STANDARDS CONFORMANCE
nl_langinfo(3C)