Update subprocess to use encoding and error handling

Replaces 'text' and 'universal_newlines' parameters with 'encoding="utf-8"' and 'errors="replace"' in subprocess.Popen for improved output handling.
This commit is contained in:
oop7
2025-11-29 13:58:16 +02:00
parent 62298dabf3
commit 9d1f886305
+2 -2
View File
@@ -337,9 +337,9 @@ class DownloadThread(QThread):
cmd, cmd,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
text=True,
bufsize=1, # Line buffered bufsize=1, # Line buffered
universal_newlines=True, encoding="utf-8",
errors="replace",
creationflags=SUBPROCESS_CREATIONFLAGS, creationflags=SUBPROCESS_CREATIONFLAGS,
) )