Skip to content

Commit aa1b104

Browse files
committed
Merge pull request #385 from ybai-thrillist/master
Really do utf8
2 parents f7d2473 + fdb1bee commit aa1b104

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sublime_plugin
77
from git import GitTextCommand, GitWindowCommand, plugin_file, view_contents, _make_text_safeish
88
import add
9+
import codecs
910

1011
history = []
1112

@@ -121,7 +122,7 @@ def message_done(self, message):
121122
message_file.close()
122123
self.message_file = message_file
123124
# and actually commit
124-
with open(message_file.name, 'r') as fp:
125+
with codecs.open(message_file.name, mode = 'r', encoding = 'utf-8') as fp:
125126
self.run_command(['git', 'commit', '-F', '-', self.extra_options],
126127
self.commit_done, working_dir=self.working_dir, stdin=fp.read())
127128

0 commit comments

Comments
 (0)