Skip to content

Commit a6457db

Browse files
committed
fix generate_opcode_metadata
1 parent c9b1a1b commit a6457db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/generate_opcode_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def extract_enum_body(contents: str, enum_name: str) -> str:
4949
)
5050

5151

52-
contents = BYTECODE_FILE.read_text()
52+
contents = BYTECODE_FILE.read_text(encoding="utf-8")
5353
enum_body = "\n".join(
5454
extract_enum_body(contents, enum_name)
5555
for enum_name in ("Instruction", "PseudoInstruction")
@@ -78,4 +78,4 @@ def extract_enum_body(contents: str, enum_name: str) -> str:
7878
MIN_INSTRUMENTED_OPCODE = 236
7979
"""
8080

81-
OPCODE_METADATA_FILE.write_text(output)
81+
OPCODE_METADATA_FILE.write_text(output, encoding="utf-8")

0 commit comments

Comments
 (0)