Patch edflib.c on Windows to enable opening UTF-8 encoded paths#237
Patch edflib.c on Windows to enable opening UTF-8 encoded paths#237skjerns merged 2 commits intoholgern:masterfrom
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.