Closed erlendviggen closed 3 years ago
Hi!
dlisio don't use Python's open
. The root cause of this is that on Windows, C++'s std::fopen
cannot be called with UTF-8 strings. On all other modern platforms it can. Alena has already drafted a fix for this (#379)
This is solved in #379. Expect a new release today
I can confirm that version 0.3.5 fixes this issue. Thanks!
When trying to open a file whose filepath has a non-ASCII character, I get the following error:
This happens for filepaths containing the Norwegian characters æ, ø, or å, so I am assuming it happens for all non-ASCII characters. I am experiencing this on Windows with Python 3.8.8 and dlisio 0.3.4. Accessing the file using basic Python (
open('path\\to\\file with æøå.dlis', 'rb')
) works without returning any OSErrors, so it looks like this might be a dlisio-specific bug.I can of course work around the problem by renaming the DLIS files in question to replace these characters, but a fix (or a better workaround!) would be nice to have.