Fix opening Audacity with non-ASCII file path

Fixes #227 #224
This commit is contained in:
Keith Edmunds 2024-04-05 10:37:22 +01:00
parent 92320c8922
commit aaf2257117

View File

@ -160,7 +160,7 @@ class PipeClient():
def _write_pipe_open(self) -> None:
"""Open _write_pipe."""
self._write_pipe = open(WRITE_NAME, 'w', encoding='ascii')
self._write_pipe = open(WRITE_NAME, 'w')
def _read_thread_start(self) -> None:
"""Start read_pipe thread."""
@ -204,7 +204,7 @@ class PipeClient():
"""Read FIFO in worker thread."""
# Thread will wait at this read until it connects.
# Connection should occur as soon as _write_pipe has connected.
with open(READ_NAME, 'r', encoding='ascii') as read_pipe:
with open(READ_NAME, 'r') as read_pipe:
message = ''
pipe_ok = True
while pipe_ok: