Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UTF8 Again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Ahmad
n00b
n00b


Joined: 18 Aug 2003
Posts: 55

PostPosted: Thu Feb 19, 2004 5:32 am    Post subject: UTF8 Again Reply with quote

Hi

I want to support UTF-8 in My Gentoo so I did this :

1. I did add (to USE) :
nls nptl unicode truetype

2. I did recompiled : gcc, xfree , glibc ,qt ,kde, perl

3. I did put
Code:
export LC_ALL=en_US.UTF8

in my profile

4. I did run
Code:
localedef -i en_US -f UTF-8 en-US.UTF-8



Now every time I try to run some program I got :
Code:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "en_US.UTF8",
        LC_CTYPE = "en_US.UTF-8",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


And in some other program I got :
Code:

Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.



Can Anyone tell me what is the problem with Unicode in Gentoo (I didn't have any problem with my old dist. RedHar & Mandrake)
_________________
http://Mozilla.4-SMS.Com (Arabic)
http://www.ArabEyes.Org (English)
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu Feb 19, 2004 12:49 pm    Post subject: Reply with quote

Shouldn't that be "en_US.utf8"?
Back to top
View user's profile Send private message
Ahmad
n00b
n00b


Joined: 18 Aug 2003
Posts: 55

PostPosted: Fri Feb 20, 2004 4:01 pm    Post subject: Reply with quote

I don't know :(

I can't find any document in gentoo site talk about unicode and what is the right : UTF8 or utf8
_________________
http://Mozilla.4-SMS.Com (Arabic)
http://www.ArabEyes.Org (English)
Back to top
View user's profile Send private message
Lemma
Guru
Guru


Joined: 19 Apr 2002
Posts: 416
Location: Uppsala, Sweden

PostPosted: Fri Feb 20, 2004 4:16 pm    Post subject: Reply with quote

ecatmur wrote:
Shouldn't that be "en_US.utf8"?
As a swede, I use
Code:
localedef -c -f UTF-8 -i sv_SE sv_SE.UTF-8
so if you are using the en_US codec you should try
Code:
localedef -c -f UTF-8 -i en_US en_US.UTF-8
instead. I think that's a bit more correct ;-).
_________________
Always make it as simple as possible, but no simpler
/Einstein
Back to top
View user's profile Send private message
Ahmad
n00b
n00b


Joined: 18 Aug 2003
Posts: 55

PostPosted: Fri Feb 20, 2004 5:49 pm    Post subject: Reply with quote

This is what I have "en_US.UTF-8" but I still have the problem even after

Code:

localedef -c -f UTF-8 -i en_US en_US.UTF-8


SEE :
Code:

mylaptop root # ls /usr/share/locale/
af/     dk/           es_SV/  id/           mn/     se/       vi/
am/     el/           et/     is/           mr/     sk/       wa/
ar/     el_GR/        et_EE/  it/           ms/     sl/       xh/
az/     en/           eu/     ja/           nb/     sp/       xx/
be/     en_AU/        eu_ES/  ja_JP.EUC/    ne/     sq/       yi/
bg/     en@boldquot/  fa/     ka/           nl/     sq_AL/    zh/
bn/     en_GB/        fi/     klingon/      nn/     sr/       zh_CN/
br/     en@quot/      fr/     kn/           no/     sr@Latn/  zh_CN.GB2312/
bs/     en_US/        ga/     ko/           no_NY/  sv/       zh_TW/
C/      eo/           gd/     kw/           pl/     ta/       zh_TW.Big5/
ca/     es/           gl/     li/           pl_PL/  tg/       zu/
cs/     es_DO/        gv/     locale.alias  pt/     th/
cy/     es_GT/        he/     lt/           pt_BR/  tr/
cz/     es_HN/        hi/     lug/          pt_PT/  uk/
da/     es_MX/        hr/     lv/           ro/     uk_UA/
de/     es_PA/        hu/     mk/           ru/     uz/
de_AT/  es_PE/        ia/     ml/           ru_RU/  uz@Cyrl/


I have all that but I still can't get en_US.UTF8 :(

We I can find this in Redhat but I can't see it in Gentoo ?
_________________
http://Mozilla.4-SMS.Com (Arabic)
http://www.ArabEyes.Org (English)
Back to top
View user's profile Send private message
Lemma
Guru
Guru


Joined: 19 Apr 2002
Posts: 416
Location: Uppsala, Sweden

PostPosted: Fri Feb 20, 2004 6:01 pm    Post subject: Reply with quote

Ok, so you do (as root):
Code:
localedef -c -f UTF-8 -i en_US en_US.UTF-8
Then what? Do you get any error-msg:s? Do you just get back to the prompt? How long does it take?
_________________
Always make it as simple as possible, but no simpler
/Einstein
Back to top
View user's profile Send private message
Ahmad
n00b
n00b


Joined: 18 Aug 2003
Posts: 55

PostPosted: Fri Feb 20, 2004 6:18 pm    Post subject: Reply with quote

I did it again , it is take few seconds and get back to the prompt without any error
_________________
http://Mozilla.4-SMS.Com (Arabic)
http://www.ArabEyes.Org (English)
Back to top
View user's profile Send private message
gna
n00b
n00b


Joined: 19 Mar 2003
Posts: 38
Location: Beijing

PostPosted: Mon Mar 15, 2004 4:10 am    Post subject: Reply with quote

Quote:
I can't find any document in gentoo site talk about unicode and what is the right : UTF8 or utf8


You need to use "UTF-8" when using localedef. Glibc changes this it "utf8" when reporting the locales but it really shouldn't do that. As you have discovered it causes lot of confusion. Happenned to me too.

What version of glibc are you using? If its 2.3.2-r9 then that is probably your problem. I suspect a patch added in r9 has broken unicode locales. I had unicode locales working with -r3 but they were broken when I upgraded glibc and downgrading did restore them.
Back to top
View user's profile Send private message
gna
n00b
n00b


Joined: 19 Mar 2003
Posts: 38
Location: Beijing

PostPosted: Mon Mar 15, 2004 4:18 am    Post subject: error in previous post Reply with quote

Sorry downgrading didn't restore the unicode locale to working order.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum