From 70cf6bf25b3dec821a4f4f6960f5b94216e064c9 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 4 Feb 2012 14:04:27 -0500 Subject: 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 --- git-bz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bz b/git-bz index d5248e4..754032b 100755 --- a/git-bz +++ b/git-bz @@ -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) -- cgit v1.2.3