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 1275f34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ def sizeof_fmt(num, suffix='B', sign=False):
process = subprocess.Popen(exec_call, stdout=subprocess.PIPE)
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 1275f34

Please sign in to comment.