Ticket #4889 (closed Bugs: fixed)
path locale-related functions are not thread-safe
|Reported by:||andysem||Owned by:||bemandawes|
|Milestone:||To Be Determined||Component:||filesystem|
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.