[Asterisk-code-review] release summary: Handle unicode encoded issue summaries (repotools[master])

Matt Jordan asteriskteam at digium.com
Sun Jul 26 10:25:45 CDT 2015


Matt Jordan has uploaded a new change for review.

  https://gerrit.asterisk.org/969

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(-)


  git pull ssh://gerrit.asterisk.org:29418/repotools refs/changes/69/969/1

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: newchange
Gerrit-Change-Id: Ide3b97775499d5571c78dfdbb273ce146c0ca9cb
Gerrit-PatchSet: 1
Gerrit-Project: repotools
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list