We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1844a commit 22c9dd8Copy full SHA for 22c9dd8
commitizen/cmd.py
@@ -23,8 +23,8 @@ def run(cmd: str) -> Command:
23
stdout, stderr = process.communicate()
24
return_code = process.returncode
25
return Command(
26
- stdout.decode(chardet.detect(stdout)["encoding"]),
27
- stderr.decode(chardet.detect(stderr)["encoding"]),
+ stdout.decode(chardet.detect(stdout)["encoding"] or "utf-8"),
+ stderr.decode(chardet.detect(stderr)["encoding"] or "utf-8"),
28
stdout,
29
stderr,
30
return_code,
0 commit comments