Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 91deaff in mainline


Ignore:
Timestamp:
2015-05-23T17:47:34Z (6 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
193d280c, 8d1f92f
Parents:
5c0e012
Message:

always interpret the commit email body as UTF-8
this should hopefully fix all the infrequent cases of failures of the post-commit hook, missing commit emails, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/bazaar/bzreml/__init__.py

    r5c0e012 r91deaff  
    7070       
    7171        sender_user, sender_email = parseaddr(sender)
    72         payload = MIMEText(body.encode("utf-8"), "plain", "utf-8")
     72        payload = MIMEText(body.decode("utf-8", 'ignore').encode("utf-8", 'ignore'), "plain", "utf-8")
    7373       
    7474        msg = MIMEMultipart()
Note: See TracChangeset for help on using the changeset viewer.