Trying to fix encoding problems with SendRootMessage
This commit is contained in:
parent
92706058e8
commit
5a3b589d62
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,7 @@ def SendRootMessageGDBTesters (branch, change):
|
||||||
text += '\n'.join (change.comments.split ('\n')[1:])
|
text += '\n'.join (change.comments.split ('\n')[1:])
|
||||||
|
|
||||||
chg_title = change.comments.split ('\n')[0]
|
chg_title = change.comments.split ('\n')[0]
|
||||||
text = text.decode ('ascii', 'ignore')
|
text = text.encode ('ascii', 'ignore').decode ('ascii')
|
||||||
mail = MIMEText (text)
|
mail = MIMEText (text)
|
||||||
if branch == 'master':
|
if branch == 'master':
|
||||||
sbj = "[binutils-gdb] %s" % chg_title
|
sbj = "[binutils-gdb] %s" % chg_title
|
||||||
|
@ -369,6 +369,7 @@ send to the gdb-testers mailing list."""
|
||||||
text += "\n"
|
text += "\n"
|
||||||
|
|
||||||
if report_build_breakage:
|
if report_build_breakage:
|
||||||
|
subj += " *** BREAKAGE ***"
|
||||||
SendAuthorMessage (name, cur_change, text)
|
SendAuthorMessage (name, cur_change, text)
|
||||||
else:
|
else:
|
||||||
# There is no build breakage anymore! Yay! Now, let's see if
|
# There is no build breakage anymore! Yay! Now, let's see if
|
||||||
|
|
Loading…
Reference in a new issue