Libstdc++ questions regarding Windows symlink patch
Adam Wood
adam.wood@mines.sdsmt.edu
Sun Jan 25 04:25:16 GMT 2026
Hello,
I have a couple questions regarding my patch titled "Add symlink support on
Windows".
First, who should I ask to review the Windows API parts of the patch?
Second, I am not sure that the approach I took regarding path normalization
was correct. Windows will normalize paths with dot-dots before checking if
the parent directory existed or was a symlink. For example, if you had the
path "folder/doesntexist/.." on Linux, this is an error. Windows doesn't
care about the non-existent folder, and the path is resolved to just
"folder".
I tried to circumvent this behavior in my patch so that functions like
std::filesystem::canonical acted more like Linux so "folder/doesntexist/.."
would throw an error on Windows as well. I now think I was wrong to do
this. What are your thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20260124/c4f2937a/attachment.htm>
More information about the Libstdc++
mailing list