Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set locale in terminal #110491

Closed
ttc0419 opened this issue Nov 12, 2020 · 11 comments
Closed

Cannot set locale in terminal #110491

ttc0419 opened this issue Nov 12, 2020 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) electron Issues and items related to Electron terminal Integrated terminal issues
Milestone

Comments

@ttc0419
Copy link

ttc0419 commented Nov 12, 2020

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

@meganrogge
Copy link
Contributor

meganrogge commented Nov 12, 2020

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"

@meganrogge meganrogge added terminal Integrated terminal issues bug Issue identified by VS Code Team member as probable bug labels Nov 12, 2020
@meganrogge meganrogge added this to the Backlog milestone Nov 12, 2020
@meganrogge meganrogge added the info-needed Issue requires more information from poster label Nov 12, 2020
@jorgelaranjo
Copy link

The problem is at electron level: #110322 and electron/electron#26443

@jorgelaranjo
Copy link

Downgrading Electron sorts it until an update for it is available
#110322 (comment)

@meganrogge meganrogge added electron Issues and items related to Electron and removed info-needed Issue requires more information from poster labels Nov 13, 2020
@Souravgoswami
Copy link

Souravgoswami commented Nov 14, 2020

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.

@XO490
Copy link

XO490 commented Nov 16, 2020

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

@deepak1556
Copy link
Contributor

Merging to #110322

@deepak1556 deepak1556 added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 16, 2020
@ricardozv
Copy link

I have the same problem.

@iqs-systems
Copy link

I have this problem too

@ricardozv
Copy link

This solution
telmotrooper commented 9 days ago •
For anyone having this issue on Arch Linux, downgrade package electron9 from 9.3.4 to 9.3.3.

curl -O https://archive.archlinux.org/packages/e/electron9/electron9-9.3.3-1-x86_64.pkg.tar.zst
sudo pacman -U electron9-9.3.3-1-x86_64.pkg.tar.zst
You'll probably want to add electron9* to IgnorePkg in /etc/pacman.conf, so the next time you update your packages you won't accidentally update this one as well. When a fix has been deployed you can remove this setting...

@SparK-Cruz
Copy link

Electron 9.3.5-1 is available for Arch.
pacman -Sy electron9 should do the trick

@djmittens
Copy link

manjaro does not have this this version yet, what can i do in the interim?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) electron Issues and items related to Electron terminal Integrated terminal issues
Projects
None yet
Development

No branches or pull requests

10 participants