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

Use import argument paths as bytestrings on Python 3 #2803

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

sampsyo
Copy link
Member

@sampsyo sampsyo commented Jan 31, 2018

This is to address #2793, where, on Python 3 under a limited locale, the path arguments to the import command can have surrogate escapes in them. This converts these str arguments to the standard beets representation for paths, which is bytes values.

I wasn't able to reproduce the problem on my machine, but I'm pretty sure this is the right fix.

@sampsyo sampsyo merged commit 2f2388f into master Feb 5, 2018
sampsyo added a commit that referenced this pull request Feb 5, 2018
Use import argument paths as bytestrings on Python 3
sampsyo added a commit that referenced this pull request Feb 5, 2018
@arcresu arcresu deleted the 2793-unicodepaths branch April 24, 2019 05:03
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.

1 participant