Page 1 of 1

How to correct locale settings?

Posted: 24. Nov 2015, 01:23
by rsal
I am getting this locale warning from perl:

Code: Select all

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Following commands did not help:

Code: Select all

export LANGUAGE="en_US"
export LC_ALL="en_US"
It only replaced (unset) with "en_US" in above error.

How can I correct this? Thanks.

Re: How to correct locale settings?

Posted: 24. Nov 2015, 07:34
by gapan
The question is: how did you manage to mess up with locales?

You can set the system locale, by running the "System Language" tool from the system menu. Once again, something you could easily have found yourself if you took the time to read the startup guide.

But if you are overriding that locale for your user from some random configuration file in your homedir that you created or edited, no-one can tell you how to fix this but yourself. You're not even providing any information about what your locale actually is right now.