Skip to content

Commit b9f43e2

Browse files
committed
addons: Use PYTHONUTF8 mode
1 parent 0325b63 commit b9f43e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

orangecanvas/application/utils/addons.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,11 @@ def run_command(
649649
"""
650650
log.info("Running %s", " ".join(command))
651651

652+
env = kwargs.pop("env", os.environ).copy()
653+
env["PYTHONIOENCODING"] = "utf-8"
654+
env["PYTHONUTF8"] = "1"
655+
kwargs["env"] = env
656+
652657
kwargs.setdefault("encoding", "utf-8")
653658
kwargs.setdefault("errors", "backslashreplace")
654659
kwargs.setdefault("universal_newlines", True)

0 commit comments

Comments
 (0)