Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
locale problems [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Fri Feb 19, 2016 9:36 pm    Post subject: locale problems [solved] Reply with quote

Hi all,

Out of nowhere, probably after glibc was updated, I am having trouble with, what I think, are my locale settings, though I did not change them. I see the following error message when I run the statistics package R:

Code:

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
5: Setting LC_PAPER failed, using "C"
6: Setting LC_MEASUREMENT failed, using "C"


My /etc/locale.gen file is as follows:

Code:

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


Any help would be appreciated.

Best,

Alex


Last edited by evoweiss on Sat Feb 20, 2016 10:50 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Feb 19, 2016 10:20 pm    Post subject: Reply with quote

alex ... please post the output of the following:

Code:
# eselect locale list
# cat /etc/env.d/02locale
# locale -a
# locale

best ... khay
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Fri Feb 19, 2016 10:32 pm    Post subject: Reply with quote

Hi khay,

Sure thing.

Code:

# eselect locale list
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   en_US
  [4]   en_US.iso88591
  [5]   en_US.utf8
  [6]   en_GB.UTF-8 *
  [ ]   (free form)

# cat /etc/env.d/02locale
LANG="en_GB.UTF-8"
LC_COLLATE="C"
rhesus aweiss # 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
en_US
en_US.iso88591
en_US.utf8

# 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_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=


khayyam wrote:
alex ... please post the output of the following:

Code:
# eselect locale list
# cat /etc/env.d/02locale
# locale -a
# locale

best ... khay
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Feb 20, 2016 12:25 am    Post subject: Reply with quote

evoweiss ...

The issue seems to be that you only have 'en_US.UTF-8 UTF-8' in /etc/locale.gen but are setting 'en_GB.UTF-8' ... add 'en_GB.UTF-8 UTF-8' to /etc/locale.gen and run 'locale-gen'.

best ... khay
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sat Feb 20, 2016 10:43 am    Post subject: Reply with quote

Thanks, that did the trick. I don't know what happened to the locale.gen file. Like I said, it used to work fine.

khayyam wrote:
evoweiss ...

The issue seems to be that you only have 'en_US.UTF-8 UTF-8' in /etc/locale.gen but are setting 'en_GB.UTF-8' ... add 'en_GB.UTF-8 UTF-8' to /etc/locale.gen and run 'locale-gen'.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum