Skip to content

Commit

Permalink
Fix terminal command should use locale encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
danyeaw committed Jan 23, 2024
1 parent c64538a commit bd2427f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/core/vcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bd2427f

Please sign in to comment.