View previous topic :: View next topic |
Author |
Message |
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Fri Aug 04, 2006 2:13 pm Post subject: Problem with locales |
|
|
hi there...i am trying to get my pc work with el_GR.UTF-8 support but i can make it work...the error that i am getting when i type "locale -a" is the following Code: | jrn23@ ~ > locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
el_GR.utf8 | do you have any ideas on how to solve my problem?? thanks in advance... |
|
Back to top |
|
|
forgotten1 Guru
Joined: 11 Jan 2005 Posts: 477 Location: East Coast, USA
|
Posted: Fri Aug 04, 2006 4:14 pm Post subject: |
|
|
See the Gentoo Linux Localization Guide for futher elaboration on the below recommendations:
- Ensure your locale is found in /usr/share/locale
- If not, generate your locale as described in the above reference.
See if that works. _________________ Return the Favor | Problem fixed? Add [Solved] to your title | Google the Forums |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Fri Aug 04, 2006 7:04 pm Post subject: |
|
|
forgotten1 wrote: | See the Gentoo Linux Localization Guide for futher elaboration on the below recommendations:
- Ensure your locale is found in /usr/share/locale
- If not, generate your locale as described in the above reference.
See if that works. | what do you mean by 1 ?? also where do i find out what the ab_CD format is supposed to be concerning my case?? in /usr/share/locale/ there is a el/ and a gr/ directory...how do i know which one i am supposed to use?? Code: | jrn23@ ~ > ls /usr/share/locale/el/
LC_MESSAGES LC_TIME man |
Code: | jrn23@ ~ > ls /usr/share/locale/gr
LC_MESSAGES | thanks... |
|
Back to top |
|
|
forgotten1 Guru
Joined: 11 Jan 2005 Posts: 477 Location: East Coast, USA
|
Posted: Fri Aug 04, 2006 7:46 pm Post subject: |
|
|
I'm currently testing my hypothesis on 1. As far as ab_CD, it would be as you have already described, el_GR. I'd thought it should be in /usr/share/locale, which is why I suggested you might look there first for it, because based on your initial post, the complaint is that there is 'no such file or directory.'
Still testing... _________________ Return the Favor | Problem fixed? Add [Solved] to your title | Google the Forums |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Fri Aug 04, 2006 7:56 pm Post subject: |
|
|
when i type "env | grep -i lc_" i get the following Code: | jrn23@ ~ > env|grep -i lc_
LC_COLLATE=el_GR.ISO-8859-7
LC_CTYPE=el_GR.ISO-8859-7 | so for some reason it is set to iso-8859-7...i have to change that to utf-8...but how do i do this?? where do i set it?? there are 3 files from the Gentoo Localisation Guide that i have read..."/etc/env.d/02locale" , "/etc/locale.gen" and "/etc/locales.build" ...which one should i use in order to have a utf-8 system-wide localisation?? is one of them unneeded?? maybe the "/etc/locales.build" from what i understand?? |
|
Back to top |
|
|
forgotten1 Guru
Joined: 11 Jan 2005 Posts: 477 Location: East Coast, USA
|
Posted: Fri Aug 04, 2006 8:08 pm Post subject: |
|
|
locales.build has been superceded by locale.gen. If you recompile glibc you'll get a warning to that effect.
And this may be a silly question, but did you also use the following guide?
Using UTF-8 with Gentoo _________________ Return the Favor | Problem fixed? Add [Solved] to your title | Google the Forums |
|
Back to top |
|
|
forgotten1 Guru
Joined: 11 Jan 2005 Posts: 477 Location: East Coast, USA
|
Posted: Fri Aug 04, 2006 8:10 pm Post subject: |
|
|
Ok, now that I've installed the el_GR locale, I know where to find it. What are the contents of /usr/lib/locale? _________________ Return the Favor | Problem fixed? Add [Solved] to your title | Google the Forums |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Fri Aug 04, 2006 11:39 pm Post subject: |
|
|
Code: | root@ / > ls /usr/lib/locale/
LC_CTYPE=el_GR.utf8/
el_GR.utf8/ | concerning the previous question about following the guide for utf8 i have the correct options in the kernel for supporting utf8...should i do anything else?? i may repost to your next question after a couple of days because currently i am joining the army and i am not always at home...thanks for any help... |
|
Back to top |
|
|
forgotten1 Guru
Joined: 11 Jan 2005 Posts: 477 Location: East Coast, USA
|
Posted: Sat Aug 05, 2006 2:22 am Post subject: |
|
|
Congratulations on your recent commitment. I'll do more research while you are out. What you found is what I expected. If I find more leads, I'll post them for you, plus any additional questions. Hope to visit your country one day. _________________ Return the Favor | Problem fixed? Add [Solved] to your title | Google the Forums |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Wed Aug 09, 2006 5:34 pm Post subject: |
|
|
Any news on my problem?? do you want some additional information?? |
|
Back to top |
|
|
forgotten1 Guru
Joined: 11 Jan 2005 Posts: 477 Location: East Coast, USA
|
Posted: Wed Aug 09, 2006 6:35 pm Post subject: |
|
|
Sorry for the delay, I've been testing an installation script and been a little busy resolving errors.
I found some information that may hold the key. Check the last two entries of this post:
problem: can't set locales
To sum it up, just put a space in between the locale and utf8 in locale.gen as in the second to last post. Then run locale-gen, then rerun locale -a. Let me know if this helps. _________________ Return the Favor | Problem fixed? Add [Solved] to your title | Google the Forums |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Wed Aug 09, 2006 9:49 pm Post subject: |
|
|
did try that but no luck unfortunately...this is what i get Code: | root@ ~ > locale-gen
* Generating 1 locales (this might take a while)
* (1/1) Generating el_GR.UTF-8 ... [ ok ]
* Generation complete
root@ ~ > locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
el_GR | anything else?? |
|
Back to top |
|
|
zAfi Apprentice
Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Wed Aug 09, 2006 11:33 pm Post subject: |
|
|
Did you already check the Code: | /etc/env.d/02locale |
Maybe you misspelled something there, e.g. "el_GR.UTF8" instead of "el_GR.utf8" (The last one is the correct form I think!)
If not try Code: | touch /etc/env.d/02locale && nano -w /etc/env.d/02locale | and then add everything you need:
Code: | LANG="el_GR.utf8"
LC_ALL="el_GR.utf8"
GDM_LANG="el_GR.utf8"
LC_CTYPE="el_GR.utf8"
LC_NUMERIC="el_GR.utf8"
LC_TIME="el_GR.utf8"
LC_COLLATE="el_GR.utf8"
LC_MONETARY="el_GR.utf8"
LC_MESSAGES="el_GR.utf8"
LC_PAPER="el_GR.utf8"
LC_NAME="el_GR.utf8"
LC_ADDRESS="el_GR.utf8"
LC_TELEPHONE="el_GR.utf8"
LC_MEASUREMENT="el_GR.utf8"
LC_IDENTIFICATION="el_GR.utf8" |
Save it and then do a
Code: | env-update
source /etc/profile
locale -a |
hope it works!
greetz,zAfi
[EDIT] btw, what language is el_GR?? greek??
[EDIt2:]
I just saw one of your previous posts! As i said, edit your 02locale and change collate and ctype to el_GR.utf8 instead of el_GR.ISO-8859-7, i think that should do it! or you add "el_GR.ISO-8859-7 " to your locale.gen and then do the locale-gen; locale -a commands. |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Wed Aug 16, 2006 10:15 am Post subject: |
|
|
this /etc/env.d/02locale Code: | LC_COLLATE="el_GR.utf8"
LC_CTYPE="el_GR.utf8" | and this is what i keep getting after doing a "env-update && source /etc/profile" Code: | root@ ~ > locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
el_GR | is there anything else i should do?? |
|
Back to top |
|
|
zAfi Apprentice
Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Wed Aug 16, 2006 5:35 pm Post subject: |
|
|
did you after editing your locale-file?? |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Wed Aug 16, 2006 7:15 pm Post subject: |
|
|
i thought i had to do a "locale-gen" only if i had edited the locale.gen file not the 02locale...should i do it?? |
|
Back to top |
|
|
zAfi Apprentice
Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Fri Aug 18, 2006 8:22 pm Post subject: |
|
|
no, thats true, you mustn't! an env-update && source /etc/profile should do it!
well, i don't know. Have you already tried to temporarely change collate and ctype?? try that by Code: | export LC_COLLATE="el_GR.utf8"
LC_CTYPE="el_GR.utf8" |
If that doesn't work...I have no more ideas left. Maybe something is broken (try a new baselayout or update world or system) or change collate and ctype to default values. |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Sun Aug 20, 2006 11:11 am Post subject: |
|
|
zAfi wrote: | no, thats true, you mustn't! an env-update && source /etc/profile should do it!
well, i don't know. Have you already tried to temporarely change collate and ctype?? try that by Code: | export LC_COLLATE="el_GR.utf8"
LC_CTYPE="el_GR.utf8" |
If that doesn't work...I have no more ideas left. Maybe something is broken (try a new baselayout or update world or system) or change collate and ctype to default values. | when i try Code: | export LC_COLLATE="el_GR.utf8"
LC_CTYPE="el_GR.utf8" | then this is what i get Code: | root@ ~ > locale
LANG=
LC_CTYPE=el_GR.utf8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE=el_GR.utf8
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL= | so it must be a problem with setting the locales through "/etc/env.d/02locale"...what should i do in this case?? just add those 2 lines in .bashrc so that they get executed when logging in?? |
|
Back to top |
|
|
zAfi Apprentice
Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Sun Aug 20, 2006 12:49 pm Post subject: |
|
|
Well, actually it should work with 02locale as well. Do you have the latest glibc version (2.3.6-r4)??
did you do a "locale -a" as well with the exported variables?? What was the output?? |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Sun Aug 20, 2006 5:10 pm Post subject: |
|
|
this is what i get Code: | root@ ~ > equery list glibc
[ Searching for package 'glibc' in all categories among: ]
* installed packages
[I--] [ -] sys-libs/glibc-2.3.6-r4 (2.2) | also Code: | root@ ~ > export LC_COLLATE="el_GR.utf8"
root@ ~ > export LC_CTYPE="el_GR.utf8"
root@ ~ > locale -a
C
el_GR
POSIX
root@ ~ > locale
LANG=
LC_CTYPE=el_GR.utf8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE=el_GR.utf8
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL= | do you have any more ideas?? and this is how the vfat partition gets mounted in fstab Code: | /dev/hde7 /mnt/share vfat user,iocharset=utf8,utf8=1,auto,noatime,umask=000 0 2 |
|
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Wed Aug 23, 2006 12:07 pm Post subject: |
|
|
any more hints on how to solve my problem?? |
|
Back to top |
|
|
zAfi Apprentice
Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Fri Aug 25, 2006 8:14 am Post subject: |
|
|
I always mounted my vfat partitions with Code: | iocharset=utf8,codepage=850 | the codepage as well, maybe this causes your problem too?? try to add your codepage or play around with your mount options. I seriously have no more ideas left.
Or try that:
http://gentoo-wiki.com/HOWTO_Mount_Windows_partitions_%28DOS%2C_FAT%2C_NTFS%29#utf8:_Unicode_support
[EDIT]
I've found something on the german utf-8 wiki:
Code: | localedef -c -f utf8 -i de_DE de_DE.utf8
env-update
source /etc/profile |
Change de_de with your el_GR....maybe it helps. |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Tue Aug 29, 2006 9:30 am Post subject: |
|
|
well i think i partially solved the problem i was dealing with...when i write in Konsole Code: | jrn23@ ~ > export LC_LANG=el_GR.utf8
jrn23@ ~ > export LC_COLLATE=el_GR.utf8
jrn23@ ~ > export LC_CTYPE=el_GR.utf8 | and then run Krusader from Konsole i can read the greek characters...the question is what do i have to do in order not to type these commands every time...because when i shutdown my pc and then open it again i have to retype those commands mentioned above...thanks for any recommendations... |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Wed Aug 30, 2006 7:13 am Post subject: |
|
|
any ideas on how to make the commands execute without i have to type them every time?? in which file should i put them?? |
|
Back to top |
|
|
zAfi Apprentice
Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Wed Aug 30, 2006 10:34 pm Post subject: |
|
|
well, theoratically spoken you should place them in /etc/env.d/02locale like I mentioned on a post before. Just place those 3 in it...maybe this works better than with everything set. |
|
Back to top |
|
|
|