Thursday, February 20, 2014

Perl Locale Failed Warning Messages For Ubuntu

New installation for Ubuntu 10.04 and 12.04 most of the time, I will get this warning messages. Its only a warning will not impact the command executed using the perl.

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

To fix this issue. Used this command. Im from Malaysia using locale ms_MY, please change your setting locale to yours. Your command messages may different from mine. I'm generating for ms_MY and en_US.UTF8.

$ sudo locale-gen ms_MY
Generating locales...
  ms_MY.ISO-8859-1... done
Generation complete.

$ sudo locale-gen en_US.UTF-8
Generating locales...
  en_US.UTF-8... done
Generation complete.

$ sudo dpkg-reconfigure locales
Generating locales...
  en_US.UTF-8... up-to-date
  ms_MY.ISO-8859-1... done
Generation complete.

Ubuntu Locale

Package for Ubuntu is language-pack-ms

No comments:

Today Notes Blog About Linux Open Source Computer Internet

comments powered by Disqus

Popular Posts