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

Don't force en_US.utf-8 as locale as it mgiht not exist. #818

Closed
wants to merge 1 commit into from

Conversation

Flameeyes
Copy link
Contributor

Don't force en_US.utf-8 as locale as it mgiht not exist.

glibc does not generate all combinations of locales by default, and Python
fails when requesting to enforce a locale that does not exist.

Since the extension is not caring for the translation chosen, but rather
only trying to enforce UTF-8 support, use the C.UTF-8 locale which is
guaranteed to exist as per https://www.gnu.org/software/libc/manual/html_node/Choosing-Locale.html

Fixes #814 where VSCode would intermittently be unable to identify
a valid Sapling checkout and/or pull from a repository.

glibc does not generate all combinations of locales by default, and Python
fails when requesting to enforce a locale that does not exist.

Since the extension is not caring for the translation chosen, but rather
only trying to enforce UTF-8 support, use the C.UTF-8 locale which is
guaranteed to exist as per https://www.gnu.org/software/libc/manual/html_node/Choosing-Locale.html

Fixes facebook#814 where VSCode would intermittently be unable to identify
a valid Sapling checkout and/or pull from a repository.
@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@sggutier
Copy link
Contributor

Thanks for the PR, but we decided to go in another way with a3608fd . Sorry for the late notice

@sggutier sggutier closed this Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VSCode Extension overrides LANG settings unconditionally, leading to non-working Python locale
3 participants