Bug 23782 – asNormalizedPath equality is broken

Status
NEW
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-03-15T21:56:02Z
Last change time
2024-12-01T16:41:07Z
Assigned to
No Owner
Creator
John Colvin
Moved to GitHub: phobos#10516 →

Comments

Comment #0 by john.loughran.colvin — 2023-03-15T21:56:02Z
assert(asNormalizedPath("hi/").text == asNormalizedPath("hi").text); assert(buildNormalizedPath("hi/") == buildNormalizedPath("hi")); //assert(asNormalizedPath("hi/") == asNormalizedPath("hi")); fails
Comment #1 by john.loughran.colvin — 2023-03-16T14:29:45Z
I understand that this is because of the structs being compared instead of the range, my point is that this just a bad experience, a silly foot-gun.
Comment #2 by robert.schadek — 2024-12-01T16:41:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10516 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB