From fe9b731b300059db743a38b9e7dc58a41cd29a97 Mon Sep 17 00:00:00 2001 From: Michael Bienia Date: Thu, 7 Jan 2010 23:14:24 +0100 Subject: [PATCH] ubuntutools/requestsync/common.py: Decode the edited report file back from UTF-8 so it can be encoded again in the next iteration (lp: #504263) --- debian/changelog | 4 +++- ubuntutools/requestsync/common.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 075e822..2364fe4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ ubuntu-dev-tools (0.88) UNRELEASED; urgency=low [ Michael Bienia ] * requestsync: Fix a bug that prevented sync requests for new packages with a version smaller than 0. + * ubuntutools/requestsync/common.py: Decode the edited report file back from + UTF-8 so it can be encoded again in the next iteration (lp: #504263) [ Luca Falavigna ] * Fix some typos in man pages. @@ -11,7 +13,7 @@ ubuntu-dev-tools (0.88) UNRELEASED; urgency=low * mk-sbuild-lv: drop deprecated sbuild configuration fields from template. * what-patch: updated for 3.0 source format. - -- Kees Cook Tue, 05 Jan 2010 08:14:11 -0800 + -- Michael Bienia Thu, 07 Jan 2010 23:10:25 +0100 ubuntu-dev-tools (0.87) lucid; urgency=low diff --git a/ubuntutools/requestsync/common.py b/ubuntutools/requestsync/common.py index 68bd1fc..8c43d13 100644 --- a/ubuntutools/requestsync/common.py +++ b/ubuntutools/requestsync/common.py @@ -122,7 +122,7 @@ def edit_report(subject, body, changes_required = False): changes_required = False report_file.seek(0) - report = report_file.read() + report = report_file.read().decode('utf-8') report_file.close() # Undecorate report again