Skip to content

Commit 75a9093

Browse files
committed
fix: force UTF-8 report output on Windows
1 parent 985c1f7 commit 75a9093

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

skills/omv-report/scripts/render_template.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,12 @@ def render_md(f: Finding) -> str:
646646
# ── CLI ───────────────────────────────────────────────────────────────────────
647647

648648
def main() -> None:
649+
# Windows pipes default to a legacy code page; reports are always UTF-8.
650+
if hasattr(sys.stdout, "reconfigure"):
651+
sys.stdout.reconfigure(encoding="utf-8")
652+
if hasattr(sys.stderr, "reconfigure"):
653+
sys.stderr.reconfigure(encoding="utf-8")
654+
649655
parser = argparse.ArgumentParser(
650656
description="Render a deterministic report skeleton from an Evidence.v1 YAML file."
651657
)

0 commit comments

Comments
 (0)