summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Saunders <trev.saunders@gmail.com>2012-07-17 12:50:33 -0400
committerChris Cormack <chris@bigballofwax.co.nz>2013-06-24 20:18:33 +1200
commit077452f8e483a758698844b174e334dad5d4e423 (patch)
treeabd7e716b399c4b954fee5ef9713d3441f54863c
parent831d4d49cd0f77348ae289495b2cfe3393dcedee (diff)
downloadgit-bz-077452f8e483a758698844b174e334dad5d4e423.tar.gz
Don't choke on UTF-8 chars in bugzilla summaries when writing commit templates.
Conflicts: git-bz
-rwxr-xr-xgit-bz2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index 636fa8c..57d4dd5 100755
--- a/git-bz
+++ b/git-bz
@@ -807,7 +807,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.encode("utf-8"))
f.close()
edit_file(filename)