Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 209276 Details for
Bug 291331
sys-apps/portage with USE=python3 cause error UnicodeEncodeError in smtplib.sendmail
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix the UnicodeEncodeError
mail_unicode.patch (text/plain), 726 bytes, created by
Zac Medico
on 2009-11-04 21:44:40 UTC
(
hide
)
Description:
fix the UnicodeEncodeError
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-11-04 21:44:40 UTC
Size:
726 bytes
patch
obsolete
>Index: pym/portage/mail.py >=================================================================== >--- pym/portage/mail.py (revision 14775) >+++ pym/portage/mail.py (revision 14776) >@@ -127,7 +127,9 @@ > myconn = smtplib.SMTP(mymailhost, mymailport) > if mymailuser != "" and mymailpasswd != "": > myconn.login(mymailuser, mymailpasswd) >- myconn.sendmail(myfrom, myrecipient, message.as_string()) >+ msg = _unicode_encode(message.as_string(), >+ encoding=_encodings['content'], errors='backslashreplace') >+ myconn.sendmail(myfrom, myrecipient, msg) > myconn.quit() > except smtplib.SMTPException as e: > raise portage.exception.PortageException(_("!!! An error occured while trying to send logmail:\n")+str(e))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 291331
:
209276
|
222633