Modify

Ticket #5434 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

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:

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

Change History

comment:1 Changed 3 years ago by bemandawes

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

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.