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

BUG: register path issues with binary and unicode strings #379

Open
hannesdelbeke opened this issue Oct 26, 2021 · 1 comment
Open

BUG: register path issues with binary and unicode strings #379

hannesdelbeke opened this issue Oct 26, 2021 · 1 comment

Comments

@hannesdelbeke
Copy link
Contributor

while adding path support to pyblish, i noticed some paths change in unpredictable ways
original thread #377

starting a new issue here to discuss this.

u"c:\some\special\södär\testpath".encode('utf-8') -> binary

b'c:\some\special\s\xc3\xb6d\xc3\xa4r\testpath' becomes
b'c:\\some\\special\\s\xc3\xb6d\xc3\xa4r\testpath' when added to registered paths using pyblish.plugin.register_plugin_path(path)
notice the \ before testpath is a single one, but all other folder \ are 2 now

b'c:\bytes\are\cool' becomes
b'c:\\bytes\\are\\cool'

@hannesdelbeke
Copy link
Contributor Author

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

No branches or pull requests

1 participant