perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = “” are supported and installed on your system.

After a fresh install of cygwin, you may have some trouble with your locale settings. For instance, while running cpan -l to look for installed Perl modules, I had this error message :

fool@localhost:~$ cpan -l

perl: warning: Please check that your locale settings:   LC_ALL = (unset),   LANG = “”  are supported and installed on your system.

To check which locales are available on your system :

fool@localhost:~$ locale -a

To set the correct value for your locale settings :

fool@localhost:~$ export LC_ALL=en_US.utf8

This will be only available for your current xterm session. To make it available all the time, set it into your shell profile configuration file.

Advertisements

One thought on “perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = “” are supported and installed on your system.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s