user3270211
user3270211

Reputation: 933

How to remove Perl locale warning

Is there any way to remove this when I run a perl script? I am running ubuntu.

perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
            LANGUAGE = (unset),
            LC_ALL = (unset),
            LC_PAPER = "no_NO.UTF-8",
            LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").

Upvotes: 4

Views: 11444

Answers (2)

serenesat
serenesat

Reputation: 4709

To get rid of the messages (by setting up the locales), run this command:

sudo locale-gen en_US en_US.UTF-8

then

sudo dpkg-reconfigure locales

Hope it helps.

Upvotes: 8

Matthias Urlichs
Matthias Urlichs

Reputation: 2524

Simply say export LC_ALL=C.UTF-8, or put that into your .profile.

Upvotes: 5

Related Questions