Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many Bundle properties are wrong on Windows after swift-foundation re-coring #5066

Open
jakepetroules opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels

Comments

@jakepetroules
Copy link
Contributor

For example, executablePath is implemented like so:

    open var executablePath: String? {
        return executableURL?.path
    }

This will result in it having an incorrect leading slash (like /C:/foo/bar/baz); instead it should use withUnsafeFileSystemRepresentation.

@jakepetroules
Copy link
Contributor Author

This also applies to free functions like NSTemporaryDirectory and NSHomeDirectory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants