Module: Mesa
Branch: main
Commit: 8913cf6f7da05bd9d534901006dd5bc543a4c3a5
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8913cf6f7da05bd9d534901006dd5bc543a4c3a5

Author: Yonggang Luo <luoyongg...@gmail.com>
Date:   Tue Dec  5 14:25:03 2023 +0800

docs: Generate document with utf8 encoding

Signed-off-by: Yonggang Luo <luoyongg...@gmail.com>
Acked-by: Eric Engestrom <e...@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26515>

---

 bin/gen_release_notes.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py
index 8bde544c941..0725120ae23 100755
--- a/bin/gen_release_notes.py
+++ b/bin/gen_release_notes.py
@@ -331,7 +331,7 @@ def update_release_notes_index(version: str) -> None:
             new_relnotes.append(f'   {version} <relnotes/{version}>\n')
         new_relnotes.append(line)
 
-    with relnotes_index_path.open('w') as f:
+    with relnotes_index_path.open('w', encoding='utf-8') as f:
         for line in new_relnotes:
             f.write(line)
 
@@ -357,7 +357,7 @@ async def main() -> None:
     )
 
     final = pathlib.Path('docs') / 'relnotes' / f'{this_version}.rst'
-    with final.open('wt') as f:
+    with final.open('wt', encoding='utf-8') as f:
         try:
             f.write(TEMPLATE.render(
                 bugfix=is_point_release,

Reply via email to