You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Path prefixed by \\.\ is not normalised on Windows #247
I think at the very least this behavior should be documented in the examples.
well, the thing is that it only behaves so by accident and the code doesn't really ensure this properly... so I find it hard to document it, given it's kinda a quirk
I haven't made up my mind yet what the best solution is.
Activity
jasagredo commentedon Jan 8, 2025
I can confirm the same works with
\\?\:Probably because of this:
hasufell commentedon Jan 8, 2025
Those behaviors are a little inconsistent.
\\.\should be treated mostly the same as\\?\.But the latter has an interesting property: https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#skip-normalization
But as the windows api documentation says, they're still normalized when passed to
GetFullPathName. So maybe we should do the same.But it would be kind of a breaking change.
Sometimes people rely on "bugs". Is this a bug? It's debatable.
jasagredo commentedon Jan 8, 2025
My preference would be to treat both the same.
I think at the very least this behavior should be documented in the examples.
It is counterintuitive.
hasufell commentedon Jan 11, 2025
well, the thing is that it only behaves so by accident and the code doesn't really ensure this properly... so I find it hard to document it, given it's kinda a quirk
I haven't made up my mind yet what the best solution is.
hasufell commentedon Jan 11, 2025
@Mistuke any opinions?