Perl error : perl: warning: Setting locale failed.

This's my problem

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = "en_US.UTF-8",
        LC__FASTMSG = "true",
        LC_MESSAGES = "",
        LC_CTYPE = "en_US.UTF-8",
        LC_TYPE = "en_US.UTF-8",
        LANG = "EN_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

This is perl, v5.10.1 (*) built for aix-thread-multi

I found some solutions, for Ubuntu only - don't work in AIX. How to fix this in AIX ???

I have no idea what LC__FASTMSG and LC_TYPE are (and I don't use perl much) and LC_MESSAGES should almost never be set to an empty string; but when LC_ALL has been set, it should override any values that have been assigned to LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME and LANG. Valid locale names on your system can be listed using the command:

locale -a

but en_US.UTF-8 is a valid locale on many UNIX systems. EN_US (rather than en_US ) as a value for LANG looks suspicious, but as I said, with LC_ALL set, it shouldn't matter.

1 Like