diff options
author | Justin <justinvos@live.com> | 2015-01-15 15:30:28 +0000 |
---|---|---|
committer | Chris Cormack <chris@bigballofwax.co.nz> | 2015-01-15 16:51:55 +1300 |
commit | 4666a5ae4d8fab588c7481d6d48ff6ea6eee1da1 (patch) | |
tree | d2f6540fb391c500a82e599b3e832f3b3050a84a | |
parent | 650fce32ac875737acbd3ce07b2aa06b2769e53f (diff) | |
download | git-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-x | git-bz | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |