ubuntutools/requestsync/mail.py: Encode the report to utf-8 before passing

it to gpg for signing (lp: #522316).
This commit is contained in:
Michael Bienia 2010-02-15 22:40:51 +01:00
parent 51160d6eb1
commit cfe30e88e5
2 changed files with 6 additions and 2 deletions

6
debian/changelog vendored
View File

@ -22,7 +22,11 @@ ubuntu-dev-tools (0.93) UNRELEASED; urgency=low
* mk-sbuild.1: update documentation to reflect alternative config file
names for distro and schroot type overrides.
-- Kees Cook <kees@ubuntu.com> Tue, 09 Feb 2010 07:10:39 -0800
[ Michael Bienia ]
* ubuntutools/requestsync/mail.py: Encode the report to utf-8 before passing
it to gpg for signing (lp: #522316).
-- Michael Bienia <geser@ubuntu.com> Mon, 15 Feb 2010 22:37:59 +0100
ubuntu-dev-tools (0.92) lucid; urgency=low

View File

@ -180,7 +180,7 @@ def mailBug(srcpkg, subscribe, status, bugtitle, bugtext, keyid = None):
# sign the mail body
gpg = subprocess.Popen(gpg_command, stdin = subprocess.PIPE, stdout = subprocess.PIPE)
signed_report = gpg.communicate(mailbody)[0]
signed_report = gpg.communicate(mailbody.encode('utf-8'))[0]
assert gpg.returncode == 0
# generate email