[Boost-bugs] [Boost C++ Libraries] #7388: path::wchar_t_codecvt_facet() on linux always ignore my locale, which I set by path::imbue

Subject: [Boost-bugs] [Boost C++ Libraries] #7388: path::wchar_t_codecvt_facet() on linux always ignore my locale, which I set by path::imbue
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-18 14:47:01


#7388: path::wchar_t_codecvt_facet() on linux always ignore my locale, which I set
by path::imbue
-------------------------------------------------+--------------------------
 Reporter: Brazhnick Kirill <kirk2003@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.52.0
 Severity: Problem | Keywords:
-------------------------------------------------+--------------------------
 Hello!
 Sorry, in this code of path::wchar_t_codecvt_facet:

 {{{
   const path::codecvt_type*& path::wchar_t_codecvt_facet()
   {
 # if defined(BOOST_POSIX_API) && \
       !(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__))
       // A local static initialized by calling path::imbue ensures that
 std::locale(""),
       // which may throw, is called only if path_locale and condecvt_facet
 will actually
       // be used. Thus misconfigured environmental variables will only
 cause an
       // exception if a valid std::locale("") is actually needed.
       static std::locale
 posix_lazy_initialization(path::imbue(std::locale("")));
 # endif
     return codecvt_facet;
   }
 }}}

 after string

 {{{
 posix_lazy_initialization(path::imbue(std::locale("")));
 }}}

 codecvt_facet which I set by path::imbue(_myLocaleWithFacet_) replacing by
 codecvt_facet from default locale std::locale("").

 In CGI-application, worked arround context of Apache server, default
 locale always POSIX. But I need support unicode names of files.

 Forgive me once again but I hope on your help and your support in the
 solvation of this problem.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7388>
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-02-16 18:50:10 UTC