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

On Linux when $LANG is not set, Locale::current().tags_for("messages") returns an empty tag #6

Open
kellpossible opened this issue Nov 26, 2020 · 0 comments

Comments

@kellpossible
Copy link

On Linux when $LANG is not set, Locale::current().tags_for("messages") returns an empty tag, resulting in the following problem in this dependency:

kellpossible/cargo-i18n#49

I've worked around this for now by detecting when the tag is empty. Perhaps instead it should not return any tags if the environment variable is empty?

kellpossible added a commit to kellpossible/cargo-i18n that referenced this issue Nov 26, 2020
More gracefully handle the situation on Linux where LANG environment
variable is not set due to rust-locale/locale_config#6
kellpossible added a commit to kellpossible/cargo-i18n that referenced this issue Dec 8, 2020
More gracefully handle the situation on Linux where LANG environment
variable is not set due to rust-locale/locale_config#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant