Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 12987f4

Browse files
gpongelliLee-W
authored andcommitted
avoid DecodeError on non-english execution
1 parent e545b0d commit 12987f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎commitizen/cmd.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,10 @@ def run(cmd: str) -> Command:
2020
)
2121
stdout, stderr = process.communicate()
2222
return_code = process.returncode
23-
return Command(stdout.decode(), stderr.decode(), stdout, stderr, return_code)
23+
return Command(
24+
stdout.decode("iso-8859-1"),
25+
stderr.decode("iso-8859-1"),
26+
stdout,
27+
stderr,
28+
return_code,
29+
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /