Opened 5 years ago

Closed 5 years ago

#12983 closed Bugs (invalid)

path.is-rooted doesn't support windows paths

Reported by: Daniel James Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.64.0 Severity: Problem
Keywords: Cc:

Description

Path.is-rooted only checks for paths beginning with /, but not paths beginning with something like c:\\. This was breaking the quickbook build on windows, as it uses path.root, causing the issue reported at https://lists.boost.org/Archives/boost/2017/03/233343.php. I've checked a workaround into the quickbook develop branch to avoid using path.root, but it can still happen under certain circumstances.

It looks like this could also be fixed by converting the paths using 'make-NT', but there doesn't seem to be a convenient way for user code to do that.

Change History (2)

comment:1 by Daniel James, 5 years ago

Oh, wait I might be a bit confused. There's a change in quickbook's develop to use path.make which is meant to do exactly what I said. I'm going to look into this on windows, but that might take a little while, so this report might be wrong.

comment:2 by Daniel James, 5 years ago

Resolution: invalid
Status: newclosed

Okay, path.make works. Sorry, I'll close this now. Although it still would be nice if path.is-rooted also worked.

Note: See TracTickets for help on using tickets.