[issue14291] Regression in Python3 of email handling of unicode strings in headers

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Fix committed. Thanks Ali. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14291] Regression in Python3 of email handling of unicode strings in headers

2012-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd4b4650856f by R David Murray in branch '3.2': #14291: if a header has non-ascii unicode, default to CTE using utf-8 http://hg.python.org/cpython/rev/fd4b4650856f New changeset f5dcb2d58893 by R David Murray in branch 'default': Merge #14291: if a

[issue14291] Regression in Python3 of email handling of unicode strings in headers

2012-03-13 Thread Ali Ikinci
Ali Ikinci added the comment: Together with David we have worked on a fix and test for this. Thanks David. -- keywords: +patch Added file: http://bugs.python.org/file24833/Issue14291.patch ___ Python tracker _

[issue14291] Regression in Python3 of email handling of unicode strings in headers

2012-03-13 Thread R. David Murray
New submission from R. David Murray : In Python2, this works: >>> from email.mime.text import MIMEText >>> m = MIMEText('abc') >>> str(m) 'From nobody Tue Mar 13 15:44:59 2012\nContent-Type: text/plain; charset="us-ascii"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\n\nab