Opened 5 years ago
Last modified 5 years ago
#13289 new Bugs
Generating default locale from envronment variables (LC_ALL, LANG) is in wrong order
| Reported by: | Owned by: | Artyom Beilis | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | locale |
| Version: | Boost 1.62.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
When generating locale with empty string, we infer the locale from the environment variables. The current order is
- LC_CTYPE
- LC_ALL
- LANG
As per POSIX, see chapter 8.2, and linux man-pages, see man locale.7 (can't post links, the system forbids) the order should be
- LC_ALL
- LC_CTYPE
- LANG
The fix is trivial in the function boost::locale::util::get_system_locale()
Note:
See TracTickets
for help on using tickets.

Patch posted on github https://github.com/boostorg/locale/pull/22