I can't set locale in Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris I can't set locale in Solaris 8
# 1  
Old 02-25-2010
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.
# 2  
Old 02-26-2010
Try using sys-unconfig
# 3  
Old 02-26-2010
Maybe this characterset is not installed, check the directory /usr/lib/locale to see, what locales are installed.

sys-unconfig is a really bad advice, because it undos the system configuration and returns the system to factory default.
# 4  
Old 02-26-2010
Yes, sys-unconfig is overkill to say the least.

What says:
Code:
locale -a

?
# 5  
Old 02-26-2010
I read, many people has problems with locale.

Code:
# locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
#
#
# locale -a
POSIX
common
en_US.UTF-8
C
iso_8859_1
bg_BG
bg_BG.ISO8859-5
et
et_EE
et_EE.ISO8859-15
hr_HR
hr_HR.ISO8859-2
lt
lt_LT
lt_LT.ISO8859-13
lv
lv_LV
lv_LV.ISO8859-13
mk_MK
mk_MK.ISO8859-5
nr
ro_RO
ro_RO.ISO8859-2
ru
ru.UTF-8
ru.koi8-r
tr
ru_RU
ru_RU.ANSI1251
ru_RU.ISO8859-5
ru_RU.KOI8-R
ru_RU.UTF-8
sh_BA
sh_BA.ISO8859-2@bosnia
sl_SI
sl_SI.ISO8859-2
sq_AL
sq_AL.ISO8859-2
sr_SP
sr_YU
sr_YU.ISO8859-5
tr_TR
tr_TR.ISO8859-9
tr_TR.UTF-8
cs_CZ
cs_CZ.ISO8859-2
cz
de
de.ISO8859-15
de.UTF-8
de_AT
de_AT.ISO8859-1
de_AT.ISO8859-15
de_AT.ISO8859-15@euro
de_CH
de_CH.ISO8859-1
de_DE
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.ISO8859-15@euro
de_DE.UTF-8
de_DE.UTF-8@euro
fr_CH
fr_CH.ISO8859-1
hu
hu_HU
hu_HU.ISO8859-2
pl
pl.UTF-8
pl_PL
pl_PL.ISO8859-2
pl_PL.UTF-8
sk_SK
sk_SK.ISO8859-2
th
iso_8859_13
iso_8859_15
iso_8859_2
iso_8859_5
iso_8859_9
th_TH
th_TH.TIS620
#


Last edited by wolfgang; 02-26-2010 at 10:25 AM..
# 6  
Old 02-26-2010
Check if
Code:
export LC_ALL=ru_RU.ISO8859-5

followed by launching the application you want to check from the same terminal suit your needs.
# 7  
Old 02-26-2010
It does't work.

I have tried this variante:

File /etc/default/init
Code:
LC_COLLATE=ru_RU.ISO8859-5
LC_CTYPE=ru_RU.ISO8859-5 
LC_MESSAGES=C 
LC_MONETARY=ru_RU.ISO8859-5
LC_NUMERIC=ru_RU.ISO8859-5
LC_TIME=ru_RU.ISO8859-5

It works, but it is wrong.
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