Modify

Opened 7 years ago

Closed 7 years ago

#5434 closed Bugs (fixed)

path.make_preferred() does not work as specified on Windows

Reported by: steffen.priesterjahn@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.46.1 Severity: Problem
Keywords: filesystem windows make_preferred Cc:

Description

On the Windows platform and since boost 1.46.1, path.make_preferred() simply executes

std::replace(m_pathname.begin(), m_pathname.end(), L'\\', L'/');

which replaces backslashes with forward slashes. However, the function should do the opposite thing.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Beman Dawes

Resolution: fixed
Status: newclosed

(In [71079]) Fix #5404 and #5434. Add make_preferred_tests. Add comment cautioning for Windows class path relational operators when difference between slash and backslash is significant.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Beman Dawes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.