From aaf2257117df10c4f6ce3439ccd7316afa5d27bd Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 5 Apr 2024 10:37:22 +0100 Subject: [PATCH] Fix opening Audacity with non-ASCII file path Fixes #227 #224 --- app/pipeclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pipeclient.py b/app/pipeclient.py index 4ab7eb0..0169989 100755 --- a/app/pipeclient.py +++ b/app/pipeclient.py @@ -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: