[Fedora-i18n-list] locale: Cannot set LC_CTYPE to default locale: No such file or directory

Johan Henes Johan at henes.no
Sun Jul 25 14:19:47 UTC 2004


Hi again, Akira !

I have tried what You suggests, with no result... :

[root at notes root]# printenv |egrep '(LC_*|LANG)'
LANG=en_US.UTF-8
[root at notes root]#

.... - Looks that You're right, but :

[root at notes root]# localedef -i en_US -c -f UTF-8 en_US.UTF-8
[root at notes root]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or
directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
....

Same thing - also tried to reinstall glibc-common, with same result. 
(Also same result with a reboot between 'localedef- and 'locale', or
after the glibc-reinstall.

Even tried to copy a "locale-archive" from another computer - same
thing...

Am I doing something wrong ??

Best regards,

Johan 

On Sun, 2004-07-25 at 14:17, Akira TAGOH wrote:
> Hi Johan,
> 
> >>>>> On Sat, 24 Jul 2004 01:41:00 +0200,
> >>>>> "JH" == Johan Henes <Johan at henes.no> wrote:
> 
> JH> Hi !
> JH> On my Fedora C1-server I suddenly experience problems running programs,
> JH> ie yum :
> JH> ..
> JH>  [root at notes en_US]# yum
> JH> Traceback (most recent call last):
> JH>   File "/usr/bin/yum", line 30, in ?
> JH>     yummain.main(sys.argv[1:])
> JH>   File "/usr/share/yum/yummain.py", line 159, in main
> JH>     locale.setlocale(locale.LC_ALL, '')
> JH>   File "/usr/lib/python2.2/locale.py", line 381, in setlocale
> JH>     return _setlocale(category, locale)
> JH> locale.Error: locale setting not supported
> JH> ..
> 
> JH> When checking my locale settings they are unchanged from my systems
> JH> default - /etc/sysconfig/i18n :
> JH> ..
> JH> LANG="en_US.UTF-8"
> JH> SUPPORTED="en_US.UTF-8:en_US:en"
> JH> SYSFONT="latarcyrheb-sun16"
> JH> ..
> 
> JH> I get these errormessages running "locale" :
> JH> ..
> JH> [root at notes en_US]# locale
> JH> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> JH> locale: Cannot set LC_MESSAGES to default locale: No such file or
> JH> directory
> JH> locale: Cannot set LC_ALL to default locale: No such file or directory
> 
> It looks like your locale data is broken. you need to know
> what current locale is, but anyway. please try printenv |
> egrep '(LC_*|LANG)'. if you see only LANG=en_US.UTF-8 on
> that, it means your /usr/lib/locale/locale-archive is broken
> somehow. otherwise you need to specify correct one for the
> locale.
> 
> if locale-archive is broken unfortunately, you need to run
> localedef or reinstall glibc-common.
> 
> # localedef -i en_US -c -f UTF-8 en_US.UTF-8
> 
> Regards,
> --
> Akira TAGOH
> --
> Fedora-i18n-list mailing list
> Fedora-i18n-list at redhat.com
> http://www.redhat.com/mailman/listinfo/fedora-i18n-list




More information about the Fedora-i18n-list mailing list