Changeset 91deaff in mainline for contrib/bazaar/bzreml/__init__.py


Ignore:
Timestamp:
2015-05-23T17:47:34Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.