LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to set local,what's that mean. (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-set-local-whats-that-mean-904518/)

wangzhen11aaa 09-22-2011 06:39 PM

Unable to set local,what's that mean.
 
When i start my centos, showing an error

unable to set local.

What's that mean?what would i do.

andrewthomas 09-22-2011 07:03 PM

The message probably was unable to set locale.

What is the output of

Code:

locale
For example:
Code:

[lxde@slackware-x86 ~]$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=


frankbell 09-22-2011 07:48 PM

See man locale.

I've never seen that error, but you might want to look into setlocale.

wangzhen11aaa 09-22-2011 07:50 PM

Quote:

Originally Posted by andrewthomas (Post 4479685)
The message probably was unable to set locale.

What is the output of

Code:

locale
For example:
Code:

[lxde@slackware-x86 ~]$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=


Code:

$locale
Code:

LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=


andrewthomas 09-22-2011 07:53 PM

Could you post the actual error message?

wangzhen11aaa 09-22-2011 07:54 PM

Quote:

Originally Posted by andrewthomas (Post 4479714)
Could you post the actual error message?

I think i can't, because it shows when the machine is starting

andrewthomas 09-22-2011 08:00 PM

So the error is not in dmesg?

wangzhen11aaa 09-22-2011 08:22 PM

Quote:

Originally Posted by andrewthomas (Post 4479722)
So the error is not in dmesg?

I try to find the locale string in the file.
Code:

vi /var/log/dmesg
Code:

/locale
Code:

Pattern not found :  locale

frankbell 09-22-2011 08:59 PM

How about trying to take a digital picture while the error message is on the screen and posting the pic?

wangzhen11aaa 09-22-2011 10:12 PM

Quote:

Originally Posted by frankbell (Post 4479759)
How about trying to take a digital picture while the error message is on the screen and posting the pic?

Sorry, i don't have a camera.

I just write down the message:
Quote:

error: unable to set locale


All times are GMT -5. The time now is 05:52 AM.