centos 7 locales (default installation)

General support questions
Post Reply
chmind
Posts: 2
Joined: 2015/02/21 20:41:42

centos 7 locales (default installation)

Post by chmind » 2015/02/21 20:46:41

Hello.
How can i fix these errors ?

Code: Select all

[root@localhost ~]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Code: Select all

cat /etc/centos-release .
CentOS Linux release 7.0.1406 (Core)

cat /etc/locale.conf
LANG=en_US.UTF8

chmind
Posts: 2
Joined: 2015/02/21 20:41:42

Re: centos 7 locales (default installation)

Post by chmind » 2015/02/23 10:20:55

As a temporary fix i have written down:

Code: Select all

cat /etc/environment
LANG=en_US.utf8
LC_CTYPE=en_US.utf8
and Centos 7 - by default use en_US.utf8

locale -a | grep en_US

Code: Select all

en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
instead of en_US.UTF-8

Post Reply

Return to “CentOS 7 - General Support”