Subject: [Boost-bugs] [Boost C++ Libraries] #4485: boost.filesysten v3 breaks boost:::iostream::mapped_file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-29 08:00:17
#4485: boost.filesysten v3 breaks boost:::iostream::mapped_file
-------------------------------------------------+--------------------------
Reporter: ttan@⦠| Owner:
Type: Patches | Status: new
Milestone: Boost 1.44.0 | Component: None
Version: Boost Development Trunk | Severity: Problem
Keywords: filesysten v3 iostream mapped_file |
-------------------------------------------------+--------------------------
boost:::iostream::mapped_file has been design so that when passing file
path to the constructor or open(), it only accepts 3 types: std::string,
boost::filesystem::path, boost::filesystem::wpath.
due to the late update to boost::filesystem v3, boost::filesystem::path is
no longer templated, and wpath is gone.
and as Windows uses UTF16, when a path is converted from utf16 to a
certain ANSI/OEM code page(CP), causes information loss, for example,
"Apress ©" in unicode would be converted to "Apress ?" in CP936, where
code point 0x00a9(©) is lost, though it's a legal character in file name.
it amounts to that support for std::wstring in
boost:::iostream::mapped_file is gone.
a patch is needed to remove the dependence on boost.filesystem v2, and
revert to the support of std::wstring, which can be get from
path.wstring() in boost::filesystem v3.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4485> 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:04 UTC