-
Notifications
You must be signed in to change notification settings - Fork 126
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
Patch edflib.c on Windows to enable opening UTF-8 encoded paths #237
Conversation
This should fix file opening issue with non-ASCII characters in paths when local encoding is not UTF-8.
that looks good :) could you also write a test case that tests for the new behaviour? |
Hi! @skjerns I have tested this PR on this branch: https://github.com/myd7349/pyedflib/commits/ci And it seems that the current test cases are able to cover the changes made in this PR. Without changes made by this PR: https://github.com/myd7349/pyedflib/actions/runs/6086619850/job/16513382367 We can see that there are a lot of
With this PR, https://github.com/myd7349/pyedflib/actions/runs/6086686496/job/16513596128, we can see that those UserWarning caused by Unicode path on Windows are gone (windows-2019 Python3.9):
|
In the |
thanks for your addition :) |
This should fix file opening issue with non-ASCII characters in paths when local encoding is not UTF-8.