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

Windows : path related functions crash with unicode special characters #23

Open
piratos opened this issue Nov 16, 2016 · 2 comments
Open
Labels

Comments

@piratos
Copy link
Contributor

piratos commented Nov 16, 2016

the behavior of os.listdir implementation in Windows systems leads to errors in the returned paths

@enzbang
Copy link
Member

enzbang commented Nov 16, 2016

To give an example with python2:

with open(u’dir/name_\u03bb’, ‘w’):
pass

os.walk(‘dir’) will returns the filename name_?
os.walk(u’dir’) will returns the filename name_λ

One solution could be to force use of unicode on Windows (and probably on macOS) and keep bytes on Linux.

@enzbang
Copy link
Member

enzbang commented Nov 17, 2016

@Nikokrock is that fine with you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants