Skip to content

Commit

Permalink
chore: fix encoding issues (#731)
Browse files Browse the repository at this point in the history
When rebuilding the test cases I run into encoding issues that lead to
the error:

  codec can't decode byte 0xe2 in position

This change fixes this issue.
  • Loading branch information
tobiasgrosser authored Oct 28, 2024
1 parent 64d2ff2 commit b406498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SSA/Projects/InstCombine/scripts/test-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def process_file(file):
run_process1,
shell=True,
capture_output=True,
encoding="utf-8"
encoding="ISO-8859-1"
)

module1 = parse_module(
Expand All @@ -145,7 +145,7 @@ def process_file(file):
f"mlir-translate -import-llvm {full_name} | mlir-opt --mlir-print-op-generic",
shell=True,
capture_output=True,
encoding="utf-8"
encoding="ISO-8859-1"
)

module2 = parse_module(
Expand Down

0 comments on commit b406498

Please sign in to comment.