From 67707aad5425b7262de27f1388be35f082bed344 Mon Sep 17 00:00:00 2001 From: Hugo Sansaqua Date: Sat, 24 Dec 2022 17:42:55 +0900 Subject: [PATCH] Set PYTHONIOENCODING to utf-8 before invoking poerty env info -p --- poethepoet/executor/poetry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/poethepoet/executor/poetry.py b/poethepoet/executor/poetry.py index 5fc63b47..2ee43a3a 100644 --- a/poethepoet/executor/poetry.py +++ b/poethepoet/executor/poetry.py @@ -64,6 +64,7 @@ def _get_poetry_virtualenv(self, force: bool = True): # currently active clean_env = dict(environ) clean_env.pop("VIRTUAL_ENV", None) + clean_env["PYTHONIOENCODING"] = "utf-8" exec_cache["poetry_virtualenv"] = ( Popen(