Files
Ben Hillis 20ca899748 Fix UnicodeEncodeError in create-release.py on cp1252 consoles (#40127)
* Fix UnicodeEncodeError in create-release.py on cp1252 consoles

Reconfigure stdout/stderr with errors='backslashreplace' so commit
messages containing characters outside the console code-page (e.g.
U+2225) are escaped instead of crashing the script.  Also redirect the
'failed to extract PR number' warning to stderr for consistency.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix return type annotation for get_github_pr_message()

Update the return annotation from str to tuple[str | None, str | None]
to match the actual return values (pr_body, pr_number).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-07 19:11:27 +00:00
..