Opened 5 years ago

#13296 new Bugs

The directory-separator indicating the root-directory incorrectly handled by lexically_normal on windows

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

Description

According to the documentation the result for lexically_normal should contain backslashes on windows. This is not the case for the directory-separator representing the root-directory.

Examples:

cout << path("/tmp/abc/def).lexically_normal() << endl;
cout << path("c:\\abc/def").lexically_normal() << endl;

Output:

/tmp\abc\def
c:/abc\def

Change History (0)

Note: See TracTickets for help on using tickets.