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
And this is what I got on our old system.
Upon looking this up, I was led here: https://www.unix.com/302395682-post.html
And like the OP of that thread, the C locale was acting how en_US.ISO8859-1 previously had, yet en_US.ISO8859-1 was performing differently. I wanted to know why, because the post I linked to mentions it shouldn't be different. Then I found that it actually is supposed to be different: http://dsc.sun.com/dev/gadc/faq/locale.html#s10-2007-08
Great, it isn't a fluke. I realize it would be trivial to change strftime to revert back to the old way, but we like to stay as vanilla and default as possible.
Thanks for bearing with me. My question is: if we switch to the C locale, which is set up with the date format defaulting to the way we wish, are there any difference between the old way en_US.ISO8859-1 was used and C besides the date? I couldn't find a good comparison and I don't know what issues could be lurking.
Thanks
Last edited by Bryan.Eidson; 09-21-2012 at 02:52 PM..
Reason: adding url's
Implied Part 1 of your question: build a custom locale
Solaris supports localedef which lets you build custom locales. See manpage for locale(5)
Part 2 of your question
will show you all of the individual locale settings for your current locale for a category - the example uses LC_TIME. Set your locale to C, run through each category, writing to a file the whole way. Repeat the process with whatever other locale, writing to file the whole way.
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)
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)
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)
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)
: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)
Hi,
In the sample program, I am trying to print a Japanese string.
The code is as follows:
main()
{
setlocale(LC_ALL,"");
printf("String is %S\n", L"JAP");
// Note "JAP" is a valid japanese string
}
If locale is C, the string gets printed, but if it a valid japanese locale, it... (1 Reply)
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)