docs: Generate document with utf8 encoding
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26515>
This commit is contained in:
parent
e499253966
commit
8913cf6f7d
1 changed files with 2 additions and 2 deletions
|
|
@ -331,7 +331,7 @@ def update_release_notes_index(version: str) -> None:
|
||||||
new_relnotes.append(f' {version} <relnotes/{version}>\n')
|
new_relnotes.append(f' {version} <relnotes/{version}>\n')
|
||||||
new_relnotes.append(line)
|
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:
|
for line in new_relnotes:
|
||||||
f.write(line)
|
f.write(line)
|
||||||
|
|
||||||
|
|
@ -357,7 +357,7 @@ async def main() -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
final = pathlib.Path('docs') / 'relnotes' / f'{this_version}.rst'
|
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:
|
try:
|
||||||
f.write(TEMPLATE.render(
|
f.write(TEMPLATE.render(
|
||||||
bugfix=is_point_release,
|
bugfix=is_point_release,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue