每当我为 nix 包管理器(例如 nix-channel --update)运行命令时,我都会收到以下警告:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Run Code Online (Sandbox Code Playgroud)
我怀疑它与 nix 有某种关系,因为其他 perl 脚本没有显示这种行为(我尝试perl -e exit
过使用 WWW::Curl 的东西)。
更改区域设置确实反映在警告的输出中,但警告仍然显示在我能想到的每个配置中。
操作系统是 openSUSE。
我能做什么?