We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd4b1d commit b435289Copy full SHA for b435289
commitizen/commands/check.py
@@ -80,7 +80,7 @@ def __call__(self):
80
def _get_commits(self):
81
# Get commit message from file (--commit-msg-file)
82
if self.commit_msg_file:
83
- with open(self.commit_msg_file, "r") as commit_file:
+ with open(self.commit_msg_file, "r", encoding="utf-8") as commit_file:
84
commit_title = commit_file.readline()
85
commit_body = commit_file.read()
86
return [git.GitCommit(rev="", title=commit_title, body=commit_body)]
0 commit comments