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: Dimitrij Mijoski <dmjpp@…> 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

  1. LC_CTYPE
  2. LC_ALL
  3. 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

  1. LC_ALL
  2. LC_CTYPE
  3. LANG

The fix is trivial in the function boost::locale::util::get_system_locale()

Change History (1)

comment:1 by Dimitrij Mijoski <dmjpp@…>, 5 years ago

Note: See TracTickets for help on using tickets.