-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error detecting locale with an empty LC_ALL #28
Comments
Hey there, thank you for the bug report. I've fixed the oversight in #29. Would you mind trying the latest commit on |
@complexspaces Thank you for the fix! I’ve tested the latest commit on the main branch and the issue is resolved. Also, could you clarify why the |
Also, the |
IIUC |
Do you happen to know if any desktop environments support setting this variable for spawned apps? When I last looked KDE seemed to be the only desktop environment that supported multiple, ordered locales but they were just in a config file. |
I’m not sure if any desktop environments set the
Ideally, it would be useful to implement separate functions for determining the general locale and the message locale (and, ideally, for each specific Additionally, if we aim to provide the user with a list of locales in descending order of preference (with the |
Also, as in electron/shell/common/language_util_linux.cc and in chromium/src/l10n/l10n_util.cc (links from this issue), I think we should use the |
Current behavior
If
LC_ALL
is empty, the functionsys_locale::get_locale()
returns a locale from an empty string. This occurs because the_get
function does not check whetherLC_ALL
is empty or not:Expected behavior
I expect the
get_locale
function to continue evaluating the locale using other variables likeLANG
andLANGUAGE
ifLC_ALL
is empty.The text was updated successfully, but these errors were encountered: