Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
set encodings for opcode_metadata scripts
  • Loading branch information
youknowone committed Jan 28, 2026
commit d257d9536237461ae0477bacdf056e3885df6432
4 changes: 2 additions & 2 deletions scripts/generate_opcode_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def extract_enum_body(contents: str, enum_name: str) -> str:
)


contents = BYTECODE_FILE.read_text()
contents = BYTECODE_FILE.read_text(encoding="utf-8")
enum_body = "\n".join(
extract_enum_body(contents, enum_name)
for enum_name in ("Instruction", "PseudoInstruction")
Expand Down Expand Up @@ -78,4 +78,4 @@ def extract_enum_body(contents: str, enum_name: str) -> str:
MIN_INSTRUMENTED_OPCODE = 236
"""

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