Skip to content

Commit

Permalink
trying to fix windows encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Mar 6, 2024
1 parent 328a0cb commit b8dadaf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,13 @@ def sizeof_fmt(num, suffix='B', sign=False):
os.system(f"echo \"size-new-text={newSizeText}\" >> $GITHUB_OUTPUT")
os.system(f"echo \"size-diff-comment_style_1={diffComment1}\" >> $GITHUB_OUTPUT")

process = subprocess.Popen(exec_call, stdout=subprocess.PIPE)
process = subprocess.Popen(exec_call, stdout=subprocess.PIPE, encoding=sys.stdout.encoding)
out, _ = process.communicate()

diff = out.decode(encoding=sys.stdout.encoding).strip()
if is_debug():
print(f"type {type(out)}")

diff = out.decode("utf-8").strip()

if process.returncode != 0:
raise Exception("Error while executing diffuse")
Expand Down

0 comments on commit b8dadaf

Please sign in to comment.