Vscode: Cannot set locale in terminal

Created on 12 Nov 2020  路  6Comments  路  Source: microsoft/vscode




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:

  1. Open terminal using ctrl + shift + `


Does this issue occur when all extensions are disabled?: Yes

*duplicate bug electron integrated-terminal

Most helpful comment

All 6 comments

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"

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:

image

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:
image

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:
image

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:

  1. 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"

2020-11-16_20-23
2020-11-16_20-21
2020-11-16_20-20

Was this page helpful?
0 / 5 - 0 ratings