Verified Commit 92045ea1 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Merge branch 'fix/utf8-changelog-rfs-template' of salsa.debian.org:lyknode-guest/debexpo into live

MR: !90


Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parents d52a25fa c372e3de
Pipeline #66684 passed with stage
in 6 minutes and 11 seconds
...@@ -327,7 +327,8 @@ class SponsorController(BaseController): ...@@ -327,7 +327,8 @@ class SponsorController(BaseController):
# This is a workaround for Thunderbird and some other clients # This is a workaround for Thunderbird and some other clients
# not handling properly '+' in the mailto body parameter. # not handling properly '+' in the mailto body parameter.
c.mailbody = render('/sponsor/rfs_template.mako') c.mailbody = render('/sponsor/rfs_template.mako')
c.mailbody = urllib.quote_plus(c.mailbody).replace('+', '%20') c.mailbody = urllib.quote_plus(c.mailbody.encode('utf-8')) \
.replace('+', '%20')
return render('/sponsor/rfs_howto.mako') return render('/sponsor/rfs_howto.mako')
......
...@@ -40,6 +40,17 @@ class TestPluginRFSTemplate(TestImporterController): ...@@ -40,6 +40,17 @@ class TestPluginRFSTemplate(TestImporterController):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
TestImporterController.__init__(self, *args, **kwargs) TestImporterController.__init__(self, *args, **kwargs)
def test_utf8_changelog(self):
self.import_source_package('hello-utf8-changelog')
self.assert_importer_succeeded()
self.assert_package_severity('hello', 'rfstemplate',
PLUGIN_SEVERITY_INFO)
self.assert_rfs_content('hello',
'Subject: RFS: hello/1.0-1 -- Test package for '
'debexpo')
self.assert_rfs_content('hello',
'Severity: normal')
def test_dep5_license(self): def test_dep5_license(self):
self.import_source_package('hello') self.import_source_package('hello')
self.assert_importer_succeeded() self.assert_importer_succeeded()
......
hello (1.0-1) unstable; urgency=medium
* This is an UTF-8 changelog entry: é,ü,Й
* Initial release (Closes: #0)
-- Vincent TIME <vtime@example.org> Sun, 02 Dec 2018 22:38:11 +0100
../../hello/debian/compat
\ No newline at end of file
../../hello/debian/control
\ No newline at end of file
../../hello/debian/copyright
\ No newline at end of file
../../hello/debian/rules
\ No newline at end of file
../../hello/debian/source
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment