When I run perl, I get the warning:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset
In Arch Linux using a UK keyboard / locale I had the following error:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.utf8"
Exporting my locales in /etc/profile didn't fix it.
I did however fix this by editing /etc/locale.gen & also enabling
the en_US.utf8 locale that perl expected to find & running local-gen.
(I use pac-manager which uses a whole bunch of perl modules from AUR so reinstalling perl in my particular case would be a nuisance)