perl警告奇怪的环境设置
我目前正在尝试执行一个嵌入Perl-Sectection的Shell-Script:
$script_dir/gen-cfg.pl \
--prefix="$outdir" --no-skip-sequences-without-src \
"${!cfgset/#/${src_cfg_dir}}" \
"${src_cfg_dir}sequences-cat1.yaml" \
"${src_cfg_dir}sequences-cat3.yaml" \
"${extra_args[@]}"
执行脚本时,我会收到以下警告:
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LANG = "ZZ"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
这都是为C ++项目生成配置文件的一部分,您可以找到在这里。 我已经知道您可以更改.bashrc文件如下所述,但我无法将ZZ视为值。我已经检查了Perl是否正确安装。 我在Windows 10上工作,Bash用于执行Perl脚本。
I'm currently trying to execute a shell-script in which a perl-exection is also embedded:
$script_dir/gen-cfg.pl \
--prefix="$outdir" --no-skip-sequences-without-src \
"${!cfgset/#/${src_cfg_dir}}" \
"${src_cfg_dir}sequences-cat1.yaml" \
"${src_cfg_dir}sequences-cat3.yaml" \
"${extra_args[@]}"
When executing the script I get the following warning:
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LANG = "ZZ"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
This is all part of generating config files for a C++ project you can find here.
I already know that you can change the used locale in a .bashrc file as described here, but I cannot make sense of the ZZ as a value. I already checked if perl is installed correctly.
I'm working on Windows 10 and bash is used for executing perl scripts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这意味着环境变量
lang
设置为zz
,可能是由于修复此环境变量的静音警告(例如,通过解开它)。
This means that environment variable
LANG
is set toZZ
, possibly from having doneSilence the warning by fix this environment variable (e.g. by unsetting it).