[Patches] [ python-Patches-1368247 ] unicode in email.MIMEText and email/Charset.py

SourceForge.net noreply at sourceforge.net
Mon Mar 5 14:13:06 CET 2007


Patches item #1368247, was opened at 2005-11-28 15:15
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1368247&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Damjan Georgievski (gdamjan)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: unicode in email.MIMEText and email/Charset.py

Initial Comment:
This is the test case that fails in python 2.4.1:
from email.MIMEText import MIMEText
msg =
MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430')
msg.set_charset('utf-8')
msg.as_string()

And attached is a patch to correct it.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2007-03-05 14:13

Message:
Logged In: YES 
user_id=21627
Originator: NO

Your proposed patch doesn't seem to work in Python 2.5, or the trunk (i.e.
it won't prevent an exception from occuring). Can you please revise it?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1368247&group_id=5470


More information about the Patches mailing list