Subject: [Boost-bugs] [Boost C++ Libraries] #8642: Global locale prevents from using Boost.Filesystem in global constructors and destructors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-03 13:06:50
#8642: Global locale prevents from using Boost.Filesystem in global constructors
and destructors
------------------------------+---------------------------------------------
Reporter: andysem | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
The problem appears in particular with Boost.Log. On program termination,
Boost.Log may attempt to perform final log file rotation, which involves
calling Boost.Filesystem routines (path construction, in particular). But
Boost.Filesystem is not usable at this point because its global locale is
already destroyed.
Boost.Filesystem should remain usable during global constructors and
destructors. The global locale should either be embedded into the path
object (preferred solution, IMHO) or the library should ensure its
availability during these stages.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8642> 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:13 UTC