How to fix a locale setting warning from Perl?

后端 未结 30 1638
清酒与你
清酒与你 2020-11-27 08:36

When I run perl, I get the warning:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset         


        
30条回答
  •  感情败类
    2020-11-27 09:22

    Here is how to solve it on Mac OS Lion (10.7) or Cygwin (Windows 10):

    Add the following lines to your bashrc or bash_profile on the host machine:

    # Setting for the new UTF-8 terminal support in Lion
    export LC_CTYPE=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    

    If you are using zsh, edit zshrc:

    # Setting for the new UTF-8 terminal support in Lion
    LC_CTYPE=en_US.UTF-8
    LC_ALL=en_US.UTF-8
    

提交回复
热议问题