Boost C++ Libraries: Ticket #4889: path locale-related functions are not thread-safe https://svn.boost.org/trac10/ticket/4889 <p> Boost.Filesystem v.3 keeps the locale used by path objects in a function-local static object (see path_locale function in path.cpp). If multiple threads use path methods that involve locale (such as string(), wstring(), converting constructors or assignment from strings), the code may use a not yet constructed locale object or leak the locale. The locale object must be protected with call_once or similar technique. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4889 Trac 1.4.3 Beman Dawes Wed, 04 Jan 2012 14:53:51 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4889#comment:1 https://svn.boost.org/trac10/ticket/4889#comment:1 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76303" title="Fix #4889, #6320, Locale codecvt_facet not thread safe on Windows. ...">[76303]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4889" title="#4889: Bugs: path locale-related functions are not thread-safe (closed: fixed)">#4889</a>, <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/6320" title="#6320: Bugs: race condition in boost::filesystem::path leads to crash when used in ... (reopened)">#6320</a>, Locale codecvt_facet not thread safe on Windows. Move Windows, Mac OS X, locale and codecvt facet back to namespace scope. POSIX except OS X uses local static initialization (IE lazy) to ensure exceptions are catchable if environmental variables are misconfigured and to avoid use of locale("") if not actually used. </p> Ticket raad@… Mon, 27 Jun 2016 13:11:26 GMT cc set https://svn.boost.org/trac10/ticket/4889#comment:2 https://svn.boost.org/trac10/ticket/4889#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">raad@…</span> added </li> </ul> Ticket