R. David Murray <rdmur...@bitdance.com> added the comment:

I don't think either of the previous patches are correct.  I found a note in 
Issue1685453 that Barry would like for this to work, and after poking around in 
the code for a bit I think it can be done without breaking anything.

Attached is a patch that adds unicode support to MIMEText, including unit tests 
and docs updates.  Note that it is necessary to specify a charset if you have 
non-ASCII text in your unicode string, since the default charset is us-ascii.  
The unit tests confirm this behavior.

Now the question is, is this a bug-fix or an enhancement?  I *think* it is safe 
to apply and backport, since I think the only behavior it changes is to make 
unicode input work, whereas before it would give a traceback.  But I've been 
wrong before :(

----------
resolution: invalid -> fixed
stage: committed/rejected -> patch review
versions: +Python 3.2 -Python 3.0
Added file: http://bugs.python.org/file17512/mimetext_unicode_input.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1368247>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to