FAQ

perl: warning: Setting locale failed.

执行脚本出现以下警告信息,且生成的报告头部也会保留类似警告信息。

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "zh_CN",
        LC_ALL = "",
        LANG = "cn"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

解决方法:

export LC_ALL=zh_CN.UTF-8

Refs

返回顶部