From f8323dc45d1affc189b0b9e5b0684b92c1bb18e5 Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:33:53 -0400 Subject: [PATCH] Fix concat_release_notes.py on Windows (#1964) --- tools/concat_release_notes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/concat_release_notes.py b/tools/concat_release_notes.py index 5692d4579..746a3785d 100644 --- a/tools/concat_release_notes.py +++ b/tools/concat_release_notes.py @@ -26,14 +26,15 @@ def generate_header(output_file: Path) -> None: Qiskit Runtime IBM Client release notes\n\ =======================================\n\ \n\ -.. towncrier release notes start\n" +.. towncrier release notes start\n", + "utf-8", ) def concat_release_notes(output_file: Path, release_notes_paths: list[Path]) -> None: - with output_file.open("a") as file: + with output_file.open("a", encoding="utf-8") as file: for release_note in release_notes_paths: - file.write(f"\n{release_note.read_text()}") + file.write(f"\n{release_note.read_text('utf-8')}") def main() -> None: