Skip to content

Commit d257d95

Browse files
committed
set encodings for opcode_metadata scripts
1 parent d2166dd commit d257d95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)