Skip to content

Process current directory handling might be wrong on Windows #5071

Open
@jakepetroules

Description

@jakepetroules

See https://github.com/apple/swift-corelibs-foundation/blob/951f3532bdb9605ea487e919fff853f69d26fffd/Sources/Foundation/Process.swift#L664

Here we access the path property of currentDirectoryURL and then attempt to convert this to filesystem representation. That might end up having a leading slash in it -- should this directly use currentDirectoryURL.withUnsafeFileSystemRepresentation instead?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions