Boost C++ Libraries: Ticket #7388: path::wchar_t_codecvt_facet() on linux always ignore my locale, which I set by path::imbue https://svn.boost.org/trac10/ticket/7388 <p> Hello! Sorry, in this code of path::wchar_t_codecvt_facet: </p> <pre class="wiki"> const path::codecvt_type*&amp; path::wchar_t_codecvt_facet() { # if defined(BOOST_POSIX_API) &amp;&amp; \ !(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; } </pre><p> after string </p> <pre class="wiki">posix_lazy_initialization(path::imbue(std::locale(""))); </pre><p> codecvt_facet which I set by path::imbue(_myLocaleWithFacet_) replacing by codecvt_facet from default locale std::locale(""). </p> <p> In CGI-application, worked arround context of Apache server, default locale always POSIX. But I need support unicode names of files. </p> <p> Forgive me once again but I hope on your help and your support in the solvation of this problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7388 Trac 1.4.3 viboes Tue, 18 Sep 2012 16:53:55 GMT component changed; owner set https://svn.boost.org/trac10/ticket/7388#comment:1 https://svn.boost.org/trac10/ticket/7388#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Beman Dawes</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> </ul> Ticket Beman Dawes Fri, 22 Feb 2013 13:49:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7388#comment:2 https://svn.boost.org/trac10/ticket/7388#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Boost.Filesystem's implementation of path locale and codecvt handling has been rewritten with much simpler, more portable, and hopefully more robust code. The interface has not changed. The rewrite has been applied to svn trunk as of revision 83062. An added reference documentation section (boost-root/libs/filesystem/doc/reference.html#path-Usage) describes class path usage concerns, such as thread data races. </p> <p> These changes should resolve this issue. If you believe it has not been resolved satisfactorily, please open a new issue rather than reopening this issue. But before you do that, please read boost-root/libs/filesystem/doc/reference.html#path-Usage to be sure that the problem you are seeing is not a manifestation of one of the those concerns. If you do open a new issue, please be specific and supply a test case and lots of details. Just saying something "doesn't work" or "crashes" is not enough! </p> <p> Thanks, </p> <p> --Beman </p> Ticket