Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

fix(pptx): force UTF-8 stdio for tool subprocesses

hugohe32f1886711bb6
diff --git a/skills/ppt-master/scripts/project_manager.py b/skills/ppt-master/scripts/project_manager.py
index e54d8c9b..02b91f74 100644
--- a/skills/ppt-master/scripts/project_manager.py
+++ b/skills/ppt-master/scripts/project_manager.py
@@ -13,6 +13,7 @@ from __future__ import annotations
import argparse
import filecmp
import json
+import os
import re
import shutil
import subprocess
@@ -233,6 +234,9 @@ class ProjectManager:
return destination
def _run_tool(self, args: list[str]) -> None:
+ child_env = os.environ.copy()
+ child_env["PYTHONUTF8"] = "1"
+ child_env["PYTHONIOENCODING"] = "utf-8:replace"
try:
result = subprocess.run(
args,
@@ -242,6 +246,7 @@ class ProjectManager:
text=True,
encoding="utf-8",
errors="replace",
+ env=child_env,
)
except FileNotFoundError as exc:
raise RuntimeError(f"Missing executable: {args[0]}") from exc