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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With