| Summary: | [ews] Handle logs with unicode characters in ews emails | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Aakash Jain <aakash_jain> | ||||
| Component: | Tools / Tests | Assignee: | Aakash Jain <aakash_jain> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | aakash_jain, ap, darin, dewei_zhu, jbedard, ryanhaddad, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Other | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=215174 https://bugs.webkit.org/show_bug.cgi?id=215627 |
||||||
| Attachments: |
|
||||||
|
Description
Aakash Jain
2020-08-10 12:21:27 PDT
Created attachment 406318 [details]
Patch
Committed r265442: <https://trac.webkit.org/changeset/265442> Comment on attachment 406318 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406318&action=review > Tools/BuildSlaveSupport/ews-build/send_email.py:43 > + email_data = """From: {}\nTo: {}\nSubject: {}\n\n{}""".format(FROM_EMAIL, ', '.join(to_emails), subject, text.encode('utf-8')) Any reason that we don't do it for `subject`? (In reply to dewei_zhu from comment #4) > Any reason that we don't do it for `subject`? Good point. Let me do that in a separate patch. Comment on attachment 406318 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=406318&action=review >> Tools/BuildSlaveSupport/ews-build/send_email.py:43 >> + email_data = """From: {}\nTo: {}\nSubject: {}\n\n{}""".format(FROM_EMAIL, ', '.join(to_emails), subject, text.encode('utf-8')) > > Any reason that we don't do it for `subject`? Fine for now, but. this may be a case for using webkitcorepy, because this encoding will be unneeded in Python 3. |