[Boost-bugs] [Boost C++ Libraries] #13289: Generating default locale from envronment variables (LC_ALL, LANG) is in wrong order

Subject: [Boost-bugs] [Boost C++ Libraries] #13289: Generating default locale from envronment variables (LC_ALL, LANG) is in wrong order
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-11-06 13:47:43


#13289: Generating default locale from envronment variables (LC_ALL, LANG) is in
wrong order
----------------------------------------+---------------------------
 Reporter: Dimitrij Mijoski <dmjpp@…> | Owner: Artyom Beilis
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: locale
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: |
----------------------------------------+---------------------------
 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()}}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13289>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-11-06 13:54:23 UTC