使用 VSCODE 时的 Perl 语言环境警告

问题描述 投票:0回答:1

我尝试在 VSCODE 中运行 Perl 并收到此错误(在 Windows 上):

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = (unset),
        (possibly more locale environment variables)
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the system default locale ("English_United States.1252").

我不确定如何更新我的区域设置...并且只能在网上找到有关 Linux/Ubuntu 和 MAC OS 的信息。

perl visual-studio-code
1个回答
0
投票

我在使用 PowerShell 的 VS Code 集成终端中遇到了同样的问题。我使用 Windows Terminal for PowerShell 时没有遇到此问题。所有这一切都使用 Strawberry Perl。

我找到的解决方案是在“设置”中将

terminal.integrated.detectLocale
改为
off
。我刚刚发现它,我不知道是否还有其他效果,但是那个开关消除了那个警告。

© www.soinside.com 2019 - 2024. All rights reserved.