Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Hello. I'm getting some warnings when running perl:

perl -e 'print "Hello\n";'
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


export LC_ALL=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

fixes the warnings for the current shell session

Is there any permanent solution?

share|improve this question
which OS is this ? WakiMiko's answer is correct for debian based linux distributions. Others would need different actions. (sorry just saw the debian tag, would be better to add the distribution in the question itself) –  0xAF Jun 25 '12 at 17:32
@0xAF, Debian 6.0 64bit –  Jevgeni Smirnov Jun 26 '12 at 5:12

1 Answer 1

Try dpkg-reconfigure locales.

share|improve this answer
I'v tried it. I choose English utf-8, but after my relogin I am having the same problem. –  Jevgeni Smirnov Jun 26 '12 at 5:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.