diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2012-02-04 14:04:27 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2012-02-04 14:08:54 -0500 |
commit | 70cf6bf25b3dec821a4f4f6960f5b94216e064c9 (patch) | |
tree | 12e7748c98c0cf94f250efca44a8aa91d7e5f825 | |
parent | 4fd0cc46dcca81f7fb503cb9e5be340f9366b7c5 (diff) |
Handle Unicode bug titles correctly
If the data that we are writing into the template ends includes
non-ASCII data, it will need to be encoded as UTF-8 before writing
the template file. Fix from Luca Bruno.
https://bugzilla.gnome.org/show_bug.cgi?id=657716
-rwxr-xr-x | git-bz | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -729,7 +729,7 @@ def edit_template(template): handle, filename = tempfile.mkstemp(".txt", "git-bz-") f = os.fdopen(handle, "w") - f.write(template) + f.write(template.encode("UTF-8")) f.close() edit_file(filename) |