Skip to content

possible reversion of W.splitFileName "/\\?/a:" #219

Closed
@joeyh

Description

@joeyh

Before 1.4.100.2, System.FilePath.Windows.splitFileName "/\\?/a:" == ("/\\?/a:","") and in that version and since it changed to ("/\\?/","a:")

I don't fully understand Windows path semantics, and this path was generated by QuickCheck, so I don't know which is right, but 1.4.100.2 did not document any change besides optimizations. Which makes me suspect this is an unintentional change.

Also, 6a1c98d fixed a reversion in W.splitFileName "\\\\?\\A:\\fred" which seems very similar to this.

ghci> System.FilePath.Windows.splitFileName "\\\\?\\A:\\fred"
("\\\\?\\A:\\","fred")
ghci> System.FilePath.Windows.splitFileName "\\\\?\\A:\\"
("\\\\?\\A:\\","")
ghci> System.FilePath.Windows.splitFileName "\\\\?\\A:"
("\\\\?\\","A:")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions