Skip to content

🍒[6.1] Handle multibyte path strings on Windows #858

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
Mar 7, 2025

Conversation

lxbndr
Copy link
Contributor

@lxbndr lxbndr commented Feb 8, 2025

Explanation: DispatchIO creation routine incorrectly handles utf8 paths on Windows (e.g. provided by URL.withUnsafeFileSystemRepresentation).
Original PR: #852
Risk: Medium. The affected code is local for io.c source and has relatively narrow and clear usage.
Testing: The prototype was tested in live product, and the final solution was checked locally with unit testing based on dispatch_io.c test code.
Reviewer: @compnerd

@lxbndr
Copy link
Contributor Author

lxbndr commented Feb 8, 2025

cc @compnerd

@compnerd
Copy link
Member

compnerd commented Feb 8, 2025

@swift-ci please test

@rokhinip rokhinip requested a review from compnerd March 7, 2025 00:43
@rokhinip rokhinip self-requested a review March 7, 2025 00:44
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is fine for this particular case. But in general, we should be including the CCC for the backports at this point.

@compnerd compnerd merged commit 886ca22 into swiftlang:release/6.1 Mar 7, 2025
2 checks passed
@lxbndr lxbndr deleted the win-multibyte-paths-6.1 branch March 7, 2025 19:12
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.

3 participants