perl警告奇怪的环境设置

发布于 2025-02-12 01:23:28 字数 908 浏览 1 评论 0原文

我目前正在尝试执行一个嵌入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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

他是夢罘是命 2025-02-19 01:23:28

这意味着环境变量lang设置为zz,可能是由于

export LANG=ZZ

修复此环境变量的静音警告(例如,通过解开它)。

This means that environment variable LANG is set to ZZ, possibly from having done

export LANG=ZZ

Silence the warning by fix this environment variable (e.g. by unsetting it).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文