You are not logged in.

#1 2012-01-14 05:31:34

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Cannot set locale [solved]

Hello guys,

By accident I deleted /etc/profile.d/locale.sh. I reinstalled initscripts to regenerate the file.

However, now I run into a couple of locale problems.

locale gives me:

[/home/robert]$ 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=

/etc/rc.conf

KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
LOCALE="en_US.UTF-8"

Some applications now complain about missing locale settings.

[/home/robert]$ youtube-viewer 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

What needs to be done?

Regards,

Robert

Last edited by orschiro (2012-01-19 04:06:40)

Offline

#2 2012-01-14 06:24:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot set locale [solved]

Did you reboot after you reinstalled initscripts?
If you did and it still doesn't work, you can try setting your LC_ALL= or exporting the "missing settings" - it worked in a similar case https://bbs.archlinux.org/viewtopic.php … 2#p1014462 or two https://bbs.archlinux.org/viewtopic.php … 6#p1020226


Edit: And you can try regenerating your locale with 'locale-gen'.

Last edited by karol (2012-01-14 06:26:53)

Offline

#3 2012-01-14 08:08:12

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Cannot set locale [solved]

Thanks karol. Somewhow the locales in locale.conf all have been commented out.

I uncommented them and ran locale-gen again.

Solved it.

Regards,

Robert

Offline

#4 2012-01-14 08:24:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot set locale [solved]

Please remember to mark the thread as solved :-)

Offline

Board footer

Powered by FluxBB