summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin <justinvos@live.com>2015-01-15 15:30:28 +0000
committerChris Cormack <chris@bigballofwax.co.nz>2015-01-15 16:51:55 +1300
commit4666a5ae4d8fab588c7481d6d48ff6ea6eee1da1 (patch)
treed2f6540fb391c500a82e599b3e832f3b3050a84a
parent650fce32ac875737acbd3ce07b2aa06b2769e53f (diff)
downloadgit-bz-4666a5ae4d8fab588c7481d6d48ff6ea6eee1da1.tar.gz
Fixing utf-8 encoding issues. Special utf-8 characters can now be used in commit messages. Added a definition header for the source code encoding.
-rwxr-xr-xgit-bz3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index de76437..68f297c 100755
--- a/git-bz
+++ b/git-bz
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# -*- coding: utf_8 -*-
#
# git-bz - git subcommand to integrate with bugzilla
#
@@ -807,7 +808,7 @@ def edit_template(template):
handle, filename = tempfile.mkstemp(".txt", "git-bz-")
f = os.fdopen(handle, "w")
- f.write(template.encode("utf-8"))
+ f.write(template)
f.close()
edit_file(filename)