Opened 6 years ago
Last modified 6 years ago
#12743 new Bugs
boost::filesystem in Windows fails to compare two identical paths with different case
| Reported by: | Owned by: | Beman Dawes | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | filesystem |
| Version: | Boost 1.61.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
boost::filesystem::path a = "E:
temp
One"; boost::filesystem::path b = "E:
Temp
One";
if (a == b) {
std::cout << "Paths are identical" << std::endl;
} else {
std::cout << "Paths are different" << std::endl;
}
This code prints "Paths are different".
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
| Component: | None → filesystem |
|---|---|
| Owner: | set to |
Note:
See TracTickets
for help on using tickets.

Formatted Code:
boost::filesystem::path a = "e:\\Temp\\One"; boost::filesystem::path b = "E:\\Temp\\One"; if (a == b) { std::cout << "Paths are identical" << std::endl; } else { std::cout << "Paths are identical" << std::endl; }