-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Use C
locale instead of en_US
#210506
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
base: main
Are you sure you want to change the base?
Use C
locale instead of en_US
#210506
Conversation
Not everybody speaks English and not everyone lives in the United States, so it is not given that `en_US` locale will be available on the system. `C`, however, must always be present on a (POSIX-compliant?) system, because it is selected as default on startup of the program, see https://man7.org/linux/man-pages/man3/setlocale.3.html The latter is therefore a much safer choice of a locale used to force English as output language, `.` as a decimal separator etc. Resolves microsoft#189924.
Note that there are a few more places that can potentially benefit from a similar change: Lines 228 to 229 in 362ac63
vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.ts Lines 113 to 114 in 362ac63
|
@lszomoru do you mind having a look at this PR please? Thanks! |
Any update? |
Will this get implemented? This issue breaks commits using pre-commit via vscode. |
Not yet |
Why, this is a small change? |
Yes, but I don't know why it hasn't been mixed yet. |
Not everybody speaks English and not everyone lives in the United States, so it is not given that
en_US
locale will be available on the system.C
, however, must always be present on a (POSIX-compliant?) system, because it is selected as default on startup of the program, see https://man7.org/linux/man-pages/man3/setlocale.3.html The latter is therefore a much safer choice of a locale used to force English as output language,.
as a decimal separator etc.Resolves #189924.