View previous topic :: View next topic |
Author |
Message |
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Fri Feb 19, 2016 9:36 pm Post subject: locale problems [solved] |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Feb 19, 2016 10:20 pm Post subject: |
|
|
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 |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Fri Feb 19, 2016 10:32 pm Post subject: |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Feb 20, 2016 12:25 am Post subject: |
|
|
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 |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Sat Feb 20, 2016 10:43 am Post subject: |
|
|
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 |
|
|
|