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

system: _reflink_darwin: use fsencode for path #5085

Merged
merged 1 commit into from
Dec 13, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Dec 12, 2020

Fixes #5083

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Comment on lines +74 to +75
ctypes.c_char_p(os.fsencode(src)),
ctypes.c_char_p(os.fsencode(dst)),
Copy link
Contributor Author

@efiop efiop Dec 12, 2020

Choose a reason for hiding this comment

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

Ideally, it would be great to have tests that cpython has https://github.com/python/cpython/blob/b5a6db9111562454617b6771b61f2734ea0420c9/Lib/test/support/os_helper.py#L121 for different situations and combinations of undecodable paths. But that seems like an overkill, this change is pretty granular.

@efiop efiop changed the title [WIP] osx: use fsencode before passing path to clonefile [WIP] system: use fsencode for paths Dec 12, 2020
@efiop efiop changed the title [WIP] system: use fsencode for paths [WIP] system: _reflink_darwin: use fsencode for path Dec 12, 2020
@efiop efiop changed the title [WIP] system: _reflink_darwin: use fsencode for path system: _reflink_darwin: use fsencode for path Dec 13, 2020
@efiop efiop merged commit 1dafbd8 into iterative:master Dec 13, 2020
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.

UTF-8 codec error while using dvc pull (surrogates not allowed)
1 participant