[all-commits] [llvm/llvm-project] 844489: [libc++] Do not remove a root-name followed by ".....
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Mon Jun 29 10:37:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8444891e4d52b901066b26c313120aa771de182c
https://github.com/llvm/llvm-project/commit/8444891e4d52b901066b26c313120aa771de182c
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
M libcxx/src/filesystem/path.cpp
M libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_normal.pass.cpp
Log Message:
-----------
[libc++] Do not remove a root-name followed by ".." in `path::lexically_normal()` (#201261)
For Windows paths like `"C:.."`, `path::lexically_normal()` should
preserve both the root-name and the `".."` component. In
[fs.path.generic]p6, clause (5) prescribes removing `".."` only after
non-dot-dot filenames. Since a root-name is not a filename, this clause
does not apply. Clause (6) only applies when there is a root-directory,
which is absent in this case. Therefore, the root-name and these `".."`
components should not be removed.
This change aligns `libc++` with MSSTL.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list