From bd2427f658e7f5cf0b5ba67a5637eec09d285b4a Mon Sep 17 00:00:00 2001 From: Dan Yeaw Date: Mon, 22 Jan 2024 22:04:19 -0500 Subject: [PATCH] Fix terminal command should use locale encoding --- src/poetry/core/vcs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/core/vcs/__init__.py b/src/poetry/core/vcs/__init__.py index 0491669be..8d0bdac4a 100644 --- a/src/poetry/core/vcs/__init__.py +++ b/src/poetry/core/vcs/__init__.py @@ -28,7 +28,7 @@ def get_vcs(directory: Path) -> Git | None: [executable(), "rev-parse", "--show-toplevel"], stderr=subprocess.STDOUT, text=True, - encoding="utf-8", + encoding="locale", ).strip() vcs = Git(Path(git_dir))