Skip to content

CoreFoundation: correct CreateStringFromFileSystemRepresentationByAdd… #2227

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

Merged
merged 1 commit into from
May 13, 2019

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented May 8, 2019

…ingPercentEscapes

On Windows,
CreateStringFromFileSystemRepresentationByAddingPercentEscapes would
only partially convert the slash character to %2F. This would result in
paths being truncated. Fix this behaviour to canonicalise the separator
properly always. Unfortunately, this uncovered some new cases of file
path handling being broken on Windows. Add tests to record those cases
so that we can fix them subsequently.

@compnerd
Copy link
Member Author

compnerd commented May 8, 2019

CC: @millenomi

@compnerd
Copy link
Member Author

compnerd commented May 8, 2019

@swift-ci please test

…ingPercentEscapes

On Windows,
`CreateStringFromFileSystemRepresentationByAddingPercentEscapes` would
only partially convert the slash character to %2F.  This would result in
paths being truncated.  Fix this behaviour to canonicalise the separator
properly always.  Unfortunately, this uncovered some new cases of file
path handling being broken on Windows.  Add tests to record those cases
so that we can fix them subsequently.
@compnerd compnerd force-pushed the separation-is-never-easy branch from d5a4147 to 365fe8b Compare May 9, 2019 16:59
@compnerd
Copy link
Member Author

compnerd commented May 9, 2019

@swift-ci please test

2 similar comments
@millenomi
Copy link
Contributor

@swift-ci please test

@millenomi
Copy link
Contributor

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@millenomi millenomi merged commit 990c791 into swiftlang:master May 13, 2019
@compnerd compnerd deleted the separation-is-never-easy branch May 13, 2019 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants