Opened 12 years ago

Closed 12 years ago

#5404 closed Bugs (fixed)

path & path::make_preferred() is incorrect

Reported by: Cees Wesseling <cees@…> Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.46.1 Severity: Showstopper
Keywords: Cc:

Description

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

should be 

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

Change History (1)

comment:1 by Beman Dawes, 12 years ago

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.

Note: See TracTickets for help on using tickets.