From b4e92f63c6b653101320cbb9e8ca3f76fbc81509 Mon Sep 17 00:00:00 2001 From: HiFiPhile Date: Sat, 14 Mar 2026 09:19:24 +0100 Subject: [PATCH] fix windows build Signed-off-by: HiFiPhile --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index cd0338413..9e9784fb7 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,11 +52,11 @@ def preprocess_readme(): src = Path(__file__).parent.parent / "README.rst" tgt = Path(__file__).parent.parent / "README_processed.rst" if src.exists(): - content = src.read_text() + content = src.read_text(encoding='utf-8') content = re.sub(r"docs/", r"", content) content = re.sub(r"\.rst\b", r".html", content) if not content.endswith("\n"): content += "\n" - tgt.write_text(content) + tgt.write_text(content, encoding='utf-8') preprocess_readme()