gulrak / filesystem

An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.
MIT License
1.31k stars 168 forks source link

wrong result from path::lexically_normal() for device UNC path #170

Open forworldm opened 10 months ago

forworldm commented 10 months ago

Describe the bug path("//?/UNC/::1/c$/foo").lexically_normal() returns \\?\UNC\::\1\c$\foo

To Reproduce See above

Expected behavior \\?\UNC\::1\c$\foo

Additional context OS Windows

gulrak commented 10 months ago

I'll look into that. As I'm at a conference in a few days, it might take me until after it to fix it, at least there can not be a release before I'm back.