Opened 12 years ago
Closed 12 years ago
#5434 closed Bugs (fixed)
path.make_preferred() does not work as specified on Windows
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
(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.