Boost C++ Libraries: Ticket #6761: boost::filesystem::absolute mixes generic and native format https://svn.boost.org/trac10/ticket/6761 <p> Under Windows: </p> <pre class="wiki">absolute(wpath(L"test/filename.ext")).native() </pre><p> returns something akin to </p> <blockquote> <p> c:\somedir\test/filename.ext </p> </blockquote> <p> The problem is that <em>absolute</em> 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 ::<a class="missing wiki">CreateFile</a> for example. </p> <p> absolute must verify that all parts use the same path delimiter. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6761 Trac 1.4.3 viboes Mon, 28 May 2012 17:21:40 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6761#comment:1 https://svn.boost.org/trac10/ticket/6761#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Beman Dawes</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> </ul> Ticket