From ab3fb67324698a1bad8c6d345353d985f5fc9752 Mon Sep 17 00:00:00 2001 From: Stefan <71585967+GandalfTheWhite80@users.noreply.github.com> Date: Sat, 5 Mar 2022 20:52:54 +0100 Subject: [PATCH] changed gen-set.py (using lang Thx @gu3) --- gen-set.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gen-set.py b/gen-set.py index 0bf68c2..9c553e0 100644 --- a/gen-set.py +++ b/gen-set.py @@ -250,7 +250,7 @@ def is_scummvmicons_repo(output_showorigin: list) -> bool: """ Checks if the local repo is a scummvm-icons repo""" for line in output_showorigin: # should be the correct repo - if ': https://github.com/scummvm/scummvm-icons' in line.decode(ENCODING): + if 'Fetch URL: https://github.com/scummvm/scummvm-icons' in line.decode(ENCODING): return True return False @@ -347,8 +347,10 @@ def write_iconsdat(changed_files: list) -> str: def run_git(*args): + my_env = os.environ.copy() + env["LANG"] = "C" """ Executes a git command and returns the stdout (as line[])""" - with subprocess.Popen(args=['git'] + list(args), stdout=subprocess.PIPE) as child_proc: + with subprocess.Popen(args=['git'] + list(args), stdout=subprocess.PIPE, env=my_env) as child_proc: return child_proc.stdout.readlines() ###########