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
getfilesystemencoding can be None, causing error #59
Comments
Thanks for reporting. I cannot reproduce the problem but I see it's possible according to the documentation: https://docs.python.org/2/library/sys.html#sys.getfilesystemencoding I've seen other code in the cpython implementation fall back to ascii in these cases (see for instance python/cpython@3741eff), I'll add a patch to do the same in pathlib2. |
Could you test and confirm that 59e893e fixes the issue that you reported? |
Yes, this fixes the issue for me - thanks for the fast response! |
Splendid. Thanks for confirming! |
FYI I've just pushed a new release including the fix. |
In Python before 3.2, it's possible to get None from this. However AWS Codebuild is setting things up, this causes pathlib2 to explode:
The text was updated successfully, but these errors were encountered: