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

Non-standard environment variable priority #46

Closed
giomasce opened this issue Dec 9, 2019 · 3 comments
Closed

Non-standard environment variable priority #46

giomasce opened this issue Dec 9, 2019 · 3 comments
Assignees
Labels

Comments

@giomasce
Copy link

giomasce commented Dec 9, 2019

Current Boost.Locale code uses, in this order, environment variables LC_CTYPE, LC_ALL and LANG to detect the default system locale. This is different from the standard behaviour, which is to use, in the order, LC_ALL, LC_* and LANG (see, for instance, the POSIX reference).

I think it would be great for Boost to adhere to the standard behaviour.

This bug was first reported to the Debian bug tracking system: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893884

@giomasce giomasce changed the title Wrong environment variable priority Non-standard environment variable priority Dec 9, 2019
@artyom-beilis artyom-beilis self-assigned this Dec 10, 2019
@dimztimz
Copy link
Contributor

dimztimz commented Oct 4, 2020

Please see patch #22. Note that that is minimal fix, it just switches LC_CTYPE and LC_ALL. The best fix is to create each facet with its matching environment variable, not just with LC_CTYPE.

@dimztimz
Copy link
Contributor

dimztimz commented Jan 7, 2023

#22 was closed, this should be closed too.

@Flamefire
Copy link
Collaborator

Fixed by #144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants