From 28228abc547bc9eb1ce27964188056b1bd1012e8 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 1 Aug 2013 05:22:43 -0400 Subject: Fix applying non-ASCII plain diffs The code that applied plain diff tried to add a Unicode header to uninterpreted patch data. https://bugzilla.gnome.org/show_bug.cgi?id=687734 --- git-bz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bz b/git-bz index cdaf031..dbdef34 100755 --- a/git-bz +++ b/git-bz @@ -1664,7 +1664,7 @@ Subject: %s """ % (name, email, patch.date, patch.description) # The exact string 'FIXME: need commit message' is checked for by # git.gnome.org commit hooks, so they need to be updated if it changes. - patch.data = headers + """ + patch.data = headers.encode('UTF-8') + """ FIXME: need commit message. (Please also double check the author and subject.) -- cgit