Skip to content

Commit b435289

Browse files
authored
fix: read commit_msg_file with utf-8
1 parent cfd4b1d commit b435289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/commands/check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __call__(self):
8080
def _get_commits(self):
8181
# Get commit message from file (--commit-msg-file)
8282
if self.commit_msg_file:
83-
with open(self.commit_msg_file, "r") as commit_file:
83+
with open(self.commit_msg_file, "r", encoding="utf-8") as commit_file:
8484
commit_title = commit_file.readline()
8585
commit_body = commit_file.read()
8686
return [git.GitCommit(rev="", title=commit_title, body=commit_body)]

0 commit comments

Comments
 (0)