Opened 6 years ago

Closed 6 years ago

#5434 closed Bugs (fixed)

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

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


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 6 years ago by bemandawes

  • Resolution set to fixed
  • Status changed from new to closed

(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.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain bemandawes.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.