id summary reporter owner description type status milestone component version severity resolution keywords cc 10766 boost::filesystem::path::parent_path() with redundant separator returns wrong value Kolya Kosenko Beman Dawes "boost::filesystem::path::parent_path() function with redundant separator at the end of directory don't return parent directory, it just removes this separator. Ubuntu 12.04, gcc 4.6.3 Following test fails: {{{ #!patch diff --git test/path_unit_test.cpp test/path_unit_test.cpp index 67ccb9f..09c7f34 100644 --- test/path_unit_test.cpp +++ test/path_unit_test.cpp @@ -662,6 +662,7 @@ namespace CHECK(path(""/"").parent_path().string() == """"); CHECK(path(""/foo"").parent_path().string() == ""/""); CHECK(path(""/foo/bar"").parent_path().string() == ""/foo""); + CHECK(path(""/foo/bar/"").parent_path().string() == ""/foo""); CHECK(path(""/foo/bar/baz.zoo"").filename().string() == ""baz.zoo""); }}} " Bugs closed To Be Determined filesystem Boost 1.57.0 Problem fixed