[Python-checkins] r72847 - tracker/roundup-src/roundup/mailer.py

martin.v.loewis python-checkins at python.org
Sat May 23 14:19:07 CEST 2009


Author: martin.v.loewis
Date: Sat May 23 14:19:07 2009
New Revision: 72847
Log:
Encode names to charset before passing them to Charset constructor :-(
Modified:
 tracker/roundup-src/roundup/mailer.py
Modified: tracker/roundup-src/roundup/mailer.py
==============================================================================
--- tracker/roundup-src/roundup/mailer.py	(original)
+++ tracker/roundup-src/roundup/mailer.py	Sat May 23 14:19:07 2009
@@ -69,7 +69,7 @@
 try:
 name.encode('ascii')
 except UnicodeError:
- name = Charset(charset).header_encode(name)
+ name = Charset(charset).header_encode(name.encode(charset))
 author = formataddr((name, author[1]))
 
 if multipart:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /