[Boost-bugs] [Boost C++ Libraries] #6761: boost::filesystem::absolute mixes generic and native format

Subject: [Boost-bugs] [Boost C++ Libraries] #6761: boost::filesystem::absolute mixes generic and native format
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-03 15:53:16


#6761: boost::filesystem::absolute mixes generic and native format
---------------------------+------------------------------------------------
 Reporter: hajokirchhoff | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.48.0
 Severity: Problem | Keywords:
---------------------------+------------------------------------------------
 Under Windows:
 {{{
 absolute(wpath(L"test/filename.ext")).native()
 }}}
 returns something akin to
  c:\somedir\test/filename.ext

 The problem is that ''absolute'' uses the current working directory when
 no cwd is given and the cwd under windows uses backslash. wpath using
 forward slash is valid, but the resulting path uses both, back- and
 forward slash, which is invalid and cannot be passed to ::CreateFile for
 example.

 absolute must verify that all parts use the same path delimiter.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6761>
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:09 UTC