submittodebian: Explitictly UTF-8 encode the bug body (LP: #1005834)

This commit is contained in:
Stefano Rivera 2012-06-20 22:20:22 +02:00
parent 4f308cdf62
commit 9f33928d38
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -22,6 +22,7 @@ ubuntu-dev-tools (0.143) UNRELEASED; urgency=low
* Correct spelling mistakes in package description, thanks Logan Rosen for
the patch (Closes: #678245)
* Correct metavar for --mirror in backportpackage (LP: #999727)
* submittodebian: Explitictly UTF-8 encode the bug body (LP: #1005834)
-- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Wed, 06 Jun 2012 09:53:24 -0400

View File

@ -228,7 +228,7 @@ def main():
tmpdir = mkdtemp()
body = os.path.join(tmpdir, 'bug_body')
fp = open(body, 'w')
fp.write(bug_body)
fp.write(bug_body.encode('utf-8'))
fp.close()
restore_maintainer('debian')