Trying to fix encoding problems with SendRootMessage

This commit is contained in:
Sergio Durigan Junior 2016-03-01 01:23:10 -05:00
parent 92706058e8
commit 5a3b589d62

View file

@ -162,7 +162,7 @@ def SendRootMessageGDBTesters (branch, change):
text += '\n'.join (change.comments.split ('\n')[1:])
chg_title = change.comments.split ('\n')[0]
text = text.decode ('ascii', 'ignore')
text = text.encode ('ascii', 'ignore').decode ('ascii')
mail = MIMEText (text)
if branch == 'master':
sbj = "[binutils-gdb] %s" % chg_title
@ -369,6 +369,7 @@ send to the gdb-testers mailing list."""
text += "\n"
if report_build_breakage:
subj += " *** BREAKAGE ***"
SendAuthorMessage (name, cur_change, text)
else:
# There is no build breakage anymore! Yay! Now, let's see if