From 12b106b347db6be2a14eb4e6e57764677a654e44 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 20 Apr 2023 13:53:21 +0200 Subject: [PATCH] [Tools] fixed encoding error in updatets script --- src/Tools/updatets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tools/updatets.py b/src/Tools/updatets.py index dd97df267d..ce668739a3 100755 --- a/src/Tools/updatets.py +++ b/src/Tools/updatets.py @@ -365,10 +365,10 @@ def update_translation(entry): return with open(f"{cur}/tsupdate_stdout.log", "a", encoding="utf-8") as f: - f.write(p.stdout.decode()) - print(p.stdout.decode()) + f.write(p.stdout) + print(p.stdout) with open(f"{cur}/tsupdate_stderr.log", "a", encoding="utf-8") as f: - f.write(p.stderr.decode()) + f.write(p.stderr) # Strip out obsolete strings, and make sure there are no translations in the main *.ts file subprocess.run(