Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #385 from ybai-thrillist/master

Really do utf8
  • Loading branch information...
commit aa1b104a501688a70472cf678aa7f36af396c1e1 2 parents f7d2473 + fdb1bee
@kemayo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  commit.py
View
3  commit.py
@@ -6,6 +6,7 @@
import sublime_plugin
from git import GitTextCommand, GitWindowCommand, plugin_file, view_contents, _make_text_safeish
import add
+import codecs
history = []
@@ -121,7 +122,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 codecs.open(message_file.name, mode = 'r', 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())

1 comment on commit aa1b104

@temperatio

Great! Now waiting for the ST3 version update.

Please sign in to comment.
Something went wrong with that request. Please try again.