You are not logged in.

#1 2007-04-25 10:06:11

omgwtfbyobbq
Member
Registered: 2006-07-04
Posts: 226

locale-gen weirdness

 locale-gen
Generating locales...
  ]#.Configuration file for locale-gen...Try `localedef --help' or `localedef --usage' for more information.
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

The en-us locale is uncommented in both /etc/locale.gen and listed in /etc/rc.conf.

ldd /usr/bin/localedef
        linux-gate.so.1 =>  (0xb7f98000)
        libc.so.6 => /lib/libc.so.6 (0xb7e53000)
        /lib/ld-linux.so.2 (0xb7f99000)
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

works, but if I try to run locale-gen again, or glibc is installed again, stuff is reb0rk3d.

Any suggestions for dealing w/ this permanently?

Offline

#2 2007-04-25 12:50:43

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: locale-gen weirdness

Could you paste here the output of

# grep "^[:blank:]*[^#]" /etc/locale.gen

?

Last edited by klixon (2007-04-25 12:52:20)


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#3 2007-04-25 23:13:21

omgwtfbyobbq
Member
Registered: 2006-07-04
Posts: 226

Re: locale-gen weirdness

grep "^[:blank:]*[^#]" /etc/locale.gen
en_US.UTF-8     UTF-8

I've also tried deleting /usr/sbin/locale-gen and reinstalling glibc, But I still get the same output from locale-gen, and the locales still get mussed up.

Offline

#4 2007-04-26 07:58:25

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: locale-gen weirdness

Weird...
Could you open /etc/locale.gen in an editor and check that the very first line in that file actualy is a comment?
That is, that the first character on that line actualy is an '#'


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#5 2007-04-26 08:37:34

omgwtfbyobbq
Member
Registered: 2006-07-04
Posts: 226

Re: locale-gen weirdness

Spot on! Works great now. It must've been like that for months (do I feel like a nitwit tongue) , thanks for all the help! smile

Offline

Board footer

Powered by FluxBB