View previous topic :: View next topic |
Author |
Message |
Ahmad n00b
Joined: 18 Aug 2003 Posts: 55
|
Posted: Thu Feb 19, 2004 5:32 am Post subject: UTF8 Again |
|
|
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 |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Thu Feb 19, 2004 12:49 pm Post subject: |
|
|
Shouldn't that be "en_US.utf8"? |
|
Back to top |
|
|
Ahmad n00b
Joined: 18 Aug 2003 Posts: 55
|
Posted: Fri Feb 20, 2004 4:01 pm Post subject: |
|
|
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 |
|
|
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Fri Feb 20, 2004 4:16 pm Post subject: |
|
|
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 |
|
|
Ahmad n00b
Joined: 18 Aug 2003 Posts: 55
|
Posted: Fri Feb 20, 2004 5:49 pm Post subject: |
|
|
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 |
|
|
Lemma Guru
Joined: 19 Apr 2002 Posts: 416 Location: Uppsala, Sweden
|
Posted: Fri Feb 20, 2004 6:01 pm Post subject: |
|
|
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 |
|
|
Ahmad n00b
Joined: 18 Aug 2003 Posts: 55
|
|
Back to top |
|
|
gna n00b
Joined: 19 Mar 2003 Posts: 38 Location: Beijing
|
Posted: Mon Mar 15, 2004 4:10 am Post subject: |
|
|
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 |
|
|
gna n00b
Joined: 19 Mar 2003 Posts: 38 Location: Beijing
|
Posted: Mon Mar 15, 2004 4:18 am Post subject: error in previous post |
|
|
Sorry downgrading didn't restore the unicode locale to working order. |
|
Back to top |
|
|
|