diff --git a/commit.py b/commit.py index 972e97c8..b318c8a0 100644 --- a/commit.py +++ b/commit.py @@ -121,7 +121,7 @@ def message_done(self, message): message_file.close() self.message_file = message_file # and actually commit - with open(message_file.name, 'r') as fp: + with open(message_file.name, 'r', -1, encoding='utf-8') as fp: self.run_command(['git', 'commit', '-F', '-', self.extra_options], self.commit_done, working_dir=self.working_dir, stdin=fp.read())