[asterisk-commits] release summary: Handle unicode encoded issue summaries (repotools[master])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 28 08:22:04 CDT 2015


Matt Jordan has submitted this change and it was merged.

Change subject: release_summary: Handle unicode encoded issue summaries
......................................................................


release_summary: Handle unicode encoded issue summaries

JIRA issue summaries may also contain unicode encoded characters. This
patch updates the outputting of said text such that it is encoded
properly.

Change-Id: Ide3b97775499d5571c78dfdbb273ce146c0ca9cb
---
M release_summary.py
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Matt Jordan: Looks good to me, approved; Verified
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/release_summary.py b/release_summary.py
index 971717d..834e0d3 100755
--- a/release_summary.py
+++ b/release_summary.py
@@ -376,7 +376,8 @@
 
         issue_a = html.a(href='{0}{1}'.format(JIRA_URL, issue.key))
         issue_a(issue.key)
-        html.raw_text(": {0}<br/>".format(issue.fields.summary))
+        html.raw_text(": {0}<br/>".format(
+            unicode(issue.fields.summary).encode('utf-8')))
         html.raw_text("Reported by: {0}".format(
             unicode(issue.fields.reporter.displayName).encode('utf-8')))
         log_list = html.ul()

-- 
To view, visit https://gerrit.asterisk.org/969
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ide3b97775499d5571c78dfdbb273ce146c0ca9cb
Gerrit-PatchSet: 1
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-commits mailing list