[Bug libstdc++/82777] incorrect result of std::filesystem::path::lexically_normal
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 1 17:09:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82777
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Nov 1 17:09:14 2017
New Revision: 254317
URL: https://gcc.gnu.org/viewcvs?rev=254317&root=gcc&view=rev
Log:
PR libstdc++/82777 fix path normalization for dot-dot
PR libstdc++/82777
* src/filesystem/std-path.cc (path::lexically_normal): Remove dot-dot
elements correctly.
* testsuite/27_io/filesystem/path/generation/normal.cc: Add testcase.
* testsuite/util/testsuite_fs.h (compare_paths): Improve exception
text.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/src/filesystem/std-path.cc
trunk/libstdc++-v3/testsuite/27_io/filesystem/path/generation/normal.cc
trunk/libstdc++-v3/testsuite/util/testsuite_fs.h
More information about the Gcc-bugs
mailing list