Opened 11 years ago

Last modified 10 years ago

#6761 new Bugs

boost::filesystem::absolute mixes generic and native format

Reported by: hajokirchhoff Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc: mailinglists@…

Description

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.

Change History (1)

comment:1 by viboes, 10 years ago

Component: Nonefilesystem
Owner: set to Beman Dawes
Note: See TracTickets for help on using tickets.