I can't set locale in Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris I can't set locale in Solaris 8
# 8  
Old 02-26-2010
Please elaborate about "it doesn't work" or "it is wrong" which don't tell that much.

What command/application are you launching ?
What isn't working as expected ?
# 9  
Old 02-26-2010
Code:
# export LC_ALL=ru_RU.ISO8859-5
LC_ALL=ru_RU.ISO8859-5: is not an identfier

# 10  
Old 02-26-2010
That's because you are using the default non standard compliant shell.

Use ksh or bash instead or, if you prefer to stick with the featureless one, run:
Code:
export LC_ALL
LC_ALL=ru_RU.ISO8859-5
run your command here

# 11  
Old 02-26-2010
I should use only C Shell.

Code:
# export LC_ALL
# LC_ALL=ru_RU.ISO8859-5
# locale
LANG=
LC_CTYPE="ru_RU.ISO8859-5"
LC_NUMERIC="ru_RU.ISO8859-5"
LC_TIME="ru_RU.ISO8859-5"
LC_COLLATE="ru_RU.ISO8859-5"
LC_MONETARY="ru_RU.ISO8859-5"
LC_MESSAGES="ru_RU.ISO8859-5"
LC_ALL=ru_RU.ISO8859-5
#

After reboot again:
Code:
# locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
#

# 12  
Old 02-26-2010
Quote:
Originally Posted by wolfgang
I should use only C Shell.
You shouldn't but anyway:
Code:
setenv LC_ALL ru_RU.ISO8859-5
launch your application here

# 13  
Old 02-26-2010
I have tried launch the application thereafter.
The application is launching with fonts coding error and locale not saved.

Last edited by wolfgang; 02-26-2010 at 12:49 PM..
# 14  
Old 02-26-2010
What are these font coding errors ?

Setting the environment variable doesn"t persist. This is done by editing /etc/default/init and rebooting.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 - Changing systems default locale

Different in Solaris 10 in that you don't just edit TIMEZONE file. LANG is currently set to en_US.UTF-8 and want it to be C. Heres what I did:- # svccfg -s svc:/system/environment:init setprop environment/LANG = astring: C # svcadm refresh svc:/system/environment And afterwards these are... (7 Replies)
Discussion started by: psychocandy
7 Replies

2. Solaris

How to set the japanese locale in Solaris 10

Pls help me to set the japanese locale in Solaris 10. I have checked JP locale has been already installed on Solaris BOX. Thanks, Karan N (2 Replies)
Discussion started by: nirka01
2 Replies

3. Solaris

LC_ALL & LANG are set OK, but others couldn't set locale correctly.

Hi, I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8 With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8". Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies

4. Solaris

Install Locale in Solaris 9

Hi, I want to install en_US.UTF-8 locale on a solaris 9 system, can anyone please tell me how? (command and which CD to use) ---------- Post updated at 09:47 AM ---------- Previous update was at 08:56 AM ---------- Got it,.. 3. How do I add a locale after installing the Base Product? (3 Replies)
Discussion started by: Mack1982
3 Replies

5. Solaris

couldn't set locale correctly

Dear All, I Have problem at my console (Ultra 24, solaris 10 x86), when i type dmesg always come out : like this You have new mail. root@console # bash root@console # dmesg couldn't set locale correctly couldn't set locale correctly So how to fix it...? Best Regards simbah (3 Replies)
Discussion started by: mbah_jiman
3 Replies

6. Solaris

Couldn't set locale correctly

Hello, I have a recently configured machine that when log into it as a user or remotely as root it displays "Couldn't set locale correctly" When I type locale it displays the below which is wrong compared to other machines LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C"... (7 Replies)
Discussion started by: Mr Pink
7 Replies

7. Solaris

Couldn't set locale correctly

hi All, I'm using sun OS 5.10. All locales are set to en_US.ISO8859-1 in /etc/profile/init file. I'm using one functional user.When I tried to "sesu - functionalUser",its giving me error like "Couldn't set locale correctly".In functional user profile i'm tring to set locales to en_US.After... (1 Reply)
Discussion started by: Kathraji
1 Replies

8. Red Hat

Command to set locale for my linux machine

Hi, I need to set a locale to my linux machine which has redhat enterprise linux 4 how should I do that. And also when i did locale -a, I have got three versions for each locale type with different .extensions like utf8,iso88951 and soon which file should I use for setting locale. ... (1 Reply)
Discussion started by: eamani_sun
1 Replies

9. UNIX for Dummies Questions & Answers

Couldn't set locale correctly

When a user connects via ssh to one of out Sun V120 boxes the following message is displayed. "couldn't set locale correctly" The .profile has the following line # @(#)local.profile 1.6 98/02/06 SMI stty istrip stty erase ^H So I put a set -x in the .profile and re sourced it and... (1 Reply)
Discussion started by: mattd
1 Replies

10. UNIX for Dummies Questions & Answers

Solaris 8 locale setting

Hello does anybody know how to change the LC_TIME locale on solaris 8 to dd/mm/YYYY currently it is set to. #locale -ck LC_TIME d_fmt="%m/%d/%y" Thanks (1 Reply)
Discussion started by: thangorn
1 Replies
Login or Register to Ask a Question