Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl Locale Warning when using VSCODE

I am trying to run Perl in VSCODE and am getting this error (on 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").

I am not sure how to update my locale settings... and can only find info online regarding this for Linux/Ubuntu and for MAC OS.

like image 356
Steff Avatar asked Mar 23 '26 01:03

Steff


1 Answers

I hit the same issue with VS Code's integrated terminal, using PowerShell. I did not have this problem using Windows Terminal for PowerShell. All this using Strawberry Perl.

The solution I found is to turn terminal.integrated.detectLocale to off in Settings. I just found it, and I don't know if there are other effects, but that switch gets rid of that warning.

like image 90
Dave Jacoby Avatar answered Mar 25 '26 22:03

Dave Jacoby



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!