You are not logged in.

#1 2007-06-13 15:21:35

Fophillips
Member
Registered: 2007-06-06
Posts: 13

[SOLVED] Invaid locale

Whenever I start an application I get the error:

warning: current locale is invalid; using default "C" locale

Or:

(process:13189): Gdk-WARNING **: locale not supported by C library

(eboard:13189): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

Depending on the app.

I believe my locale is set correctly

rc.conf wrote:

# ...
LOCALE="en_GB.UTF-8"
# ...

locale.gen wrote:

# ...
#en_DK  ISO-8859-1
en_GB.UTF-8     UTF-8
#en_GB  ISO-8859-1
# ...

$ locale -a
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
C
POSIX
$ echo $LANG
en_GB.UTF-8

Has anybody got any insight?

Thanks.


EDIT:
Fixed, I forgot to run locale-gen smile

Last edited by Fophillips (2007-06-13 15:25:48)

Offline

#2 2007-07-23 13:54:15

mjjjurek
Member
Registered: 2007-07-23
Posts: 18

Re: [SOLVED] Invaid locale

I am also getting the error message:

warning: current locale is invalid; using default "C" locale

I checked to see if I was connected to the internet.
I changed my rc.conf and locale.gen file to reflect my language.  And immediately ran locale-gen as root.

Could there be any other reason why this error still keeps popping up?

Thanks in advance.

Offline

#3 2007-07-23 15:35:19

Fophillips
Member
Registered: 2007-06-06
Posts: 13

Re: [SOLVED] Invaid locale

mjjjurek wrote:

I am also getting the error message:

warning: current locale is invalid; using default "C" locale

I checked to see if I was connected to the internet.
I changed my rc.conf and locale.gen file to reflect my language.  And immediately ran locale-gen as root.

Could there be any other reason why this error still keeps popping up?

Thanks in advance.

Does your locale appear when you run locale -a?

Offline

#4 2007-07-23 15:46:55

mjjjurek
Member
Registered: 2007-07-23
Posts: 18

Re: [SOLVED] Invaid locale

Yes it does...

But I also get these other messages:

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
C
POSIX

It lists a bunch of the other LC_ locales that are correctly set to en_US.UTF-8.  I cannot give you more specific details as I am not in front of that computer.

Thanks

Offline

#5 2007-07-23 15:57:18

Fophillips
Member
Registered: 2007-06-06
Posts: 13

Re: [SOLVED] Invaid locale

Try typing:

source /etc/rc.conf

Offline

#6 2007-07-23 23:31:59

mjjjurek
Member
Registered: 2007-07-23
Posts: 18

Re: [SOLVED] Invaid locale

Nope.  Same error.  I appreciate your idea.  Have any others?

Offline

#7 2007-07-24 02:08:19

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [SOLVED] Invaid locale

You must run

# locale-gen

after setting locale in /etc/locale.gen wink

Offline

#8 2007-07-24 12:27:05

Fophillips
Member
Registered: 2007-06-06
Posts: 13

Re: [SOLVED] Invaid locale

Misfit138 wrote:

You must run

# locale-gen

after setting locale in /etc/locale.gen wink

mjjjurek wrote:

I changed my rc.conf and locale.gen file to reflect my language.  And immediately ran locale-gen as root.

Offline

#9 2007-07-24 22:14:11

mjjjurek
Member
Registered: 2007-07-23
Posts: 18

Re: [SOLVED] Invaid locale

Yes, I did that already.  Thank you, Misfit.

Anybody have other ideas?

Offline

#10 2007-07-24 22:44:12

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [SOLVED] Invaid locale

mjjjurek wrote:

Yes, I did that already.  Thank you, Misfit.

Anybody have other ideas?

OOPS! Sorry.

Offline

Board footer

Powered by FluxBB