Showing bash: warning: setlocale: LC_ALL: cannot change locale (en-US) when opening a terminal window
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
Did you try to set the locale or do anything that could have caused this? If you tried to set the locale, that's not supported at this time as you can see here.
If not, you can set"terminal.integrated.detectLocale": "off"
The problem is at electron level: https://github.com/microsoft/vscode/issues/110322 and https://github.com/electron/electron/issues/26443
Downgrading Electron sorts it until an update for it is available
https://github.com/microsoft/vscode/issues/110322#issuecomment-726426703
I also have this issue running any command, look at the terminal, it just breaks:

I am using _en_GB.UTF-8_
Other Linux terminal emulators behave normally. But if I launch a terminal emulator from the terminal emulator of VSCode:

This started happening after I upgraded electron9 without upgrading code. I received code version 1.51.1 (ArchLinux) and I still have the same problem. I also saw this problem on reddit a couple of days ago...
Also, running the locale command gives error on VSCode:

But it works fine on a regular Linux terminal.
Showing
bash: warning: setlocale: LC_ALL: cannot change locale (en-US)when opening a terminal window
- VSCode Version: code 1.51.1
- OS Version: Arch Linux
Steps to Reproduce:
- Open terminal using ctrl + shift + `
Does this issue occur when all extensions are disabled?: Yes
I have the same problem.
why is the locale "en-US" when it should be "en_US"



Most helpful comment
The problem is at electron level: https://github.com/microsoft/vscode/issues/110322 and https://github.com/electron/electron/issues/26443