You are not logged in.

#1 2009-01-18 13:19:34

skorpan
Member
Registered: 2007-11-09
Posts: 81

Setting locale failed

It seems as though I don't have any locale set. I'm quite new to all of this and don't really get it.

$ unp
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LANG = "en_US.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

rc.conf:

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Stockholm"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MODULES=(tg3 iwl3945 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)

USELVM="no"
HOSTNAME="stalin"

eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

DAEMONS=(syslog-ng network netfs crond hal openntpd wicd alsa mpd slim)

locale.gen:

en_US.UTF-8 UTF-8
en_US ISO-8859-1
sv_SE.UTF-8 UTF-8
sv_SE ISO-8859-1

Offline

#2 2009-01-18 13:41:04

InfernalH
Member
From: Lithuania/Klaipeda-Vilnius
Registered: 2005-02-08
Posts: 101
Website

Re: Setting locale failed

What's the output of command "locale"?

Offline

#3 2009-01-18 14:40:27

skorpan
Member
Registered: 2007-11-09
Posts: 81

Re: Setting locale failed

$ 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.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

Offline

#4 2009-01-19 12:06:43

skorpan
Member
Registered: 2007-11-09
Posts: 81

Re: Setting locale failed

Any ideas?

EDIT: Sorry, I had forgotten to run locale-gen. Works now.

Last edited by skorpan (2009-01-19 12:08:28)

Offline

#5 2009-02-04 05:09:29

haggus
Member
Registered: 2008-12-21
Posts: 6

Re: Setting locale failed

I'm having the same trouble with the locales message but locale-gen isn't fixing the problem any other suggestions I looked in /etc/rc.conf everything looks alright. Where do I go next?

*edit thanks I found the problem in /etc/rc.conf all fixed now.*

Last edited by haggus (2009-02-04 05:18:47)

Offline

#6 2009-02-16 21:01:50

mar77i
Member
Registered: 2009-02-16
Posts: 21

Re: Setting locale failed

...so you need to edit /etc/locale.gen (sample file) *and then* run locale-gen. I think I'm first to mention this here.

Last edited by mar77i (2009-02-16 21:03:34)


<rickh> f(Arch) = ((Gentoo - Compiletime) + (Slackware + Depency resolution and Downloading))

Offline

Board footer

Powered by FluxBB