Locale changes?


 
Thread Tools Search this Thread
Operating Systems Solaris Locale changes?
# 1  
Old 09-21-2012
Locale changes?

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
Code:
 
$ date
Fri Sep 21 10:35:51 PDT 2012

And this is what I got on our old system.
Code:
 
$ date
September 19, 2012 04:15:19 PM PDT

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
# 2  
Old 09-21-2012
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
Code:
# locale(1) manpage
export LC_ALL=C
locale -ck LC_TIME >> C_locale

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.

You can then use diff to see what is going on.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help with Timezone locale.

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)
Discussion started by: rama krishna
2 Replies

2. Solaris

Locale woes

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)
Discussion started by: bluescreen
0 Replies

3. Solaris

I can't set locale in Solaris 8

Hi gentlemen. I would change LANG=C to iso_8859_5. I have tried some variante, but it doesn't work. Thanks. (24 Replies)
Discussion started by: wolfgang
24 Replies

4. Shell Programming and Scripting

sftp without locale

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)
Discussion started by: narang.mohit
0 Replies

5. Solaris

Locale installation..

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)
Discussion started by: sankasu
7 Replies

6. Solaris

Installation of locale..

Hi All, i am pretty new to sun solaris env.I need to install a french locale onto my machine.Could you please guide me through the steps. (1 Reply)
Discussion started by: sankasu
1 Replies

7. UNIX for Dummies Questions & Answers

Using locale

: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)
Discussion started by: alodha
3 Replies

8. UNIX for Dummies Questions & Answers

Input Locale

Hi Guys, Any ideas on how to install the zh_CN (Simplified Chinese) input locale for AIX5.2 ? Can't seem to find it any where. S. (2 Replies)
Discussion started by: stumpy
2 Replies

9. Programming

Locale setting

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)
Discussion started by: Dippan
1 Replies

10. UNIX for Dummies Questions & Answers

How to change locale ?

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)
Discussion started by: snsrini
1 Replies
Login or Register to Ask a Question