summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-06-02 22:11:01 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-06-02 22:11:01 (GMT)
commite036af0ce5a564b958381e49c61a91f7a3591d1a (patch)
tree90544abfc3edce5e786e44598d411337fb013221 /Misc
parentb56b50ddd149fd0d81e8b37d38efac60e736da9e (diff)
downloadcpython-e036af0ce5a564b958381e49c61a91f7a3591d1a.zip
cpython-e036af0ce5a564b958381e49c61a91f7a3591d1a.tar.gz
cpython-e036af0ce5a564b958381e49c61a91f7a3591d1a.tar.bz2
Merged revisions 81658 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81658 | r.david.murray | 2010-06-02 18:03:15 -0400 (Wed, 02 Jun 2010) | 9 lines #1368247: make set_charset/MIMEText automatically encode unicode _payload. Fixes (mysterious, to the end user) UnicodeErrors when using utf-8 as the charset and unicode as the _text argument. Also makes the way in which unicode gets encoded to quoted printable for other charsets more sane (it only worked by accident previously). The _payload now is encoded to the charset.output_charset if it is unicode. ........
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 5f3b31d..70e3cee 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -58,6 +58,9 @@ C-API
Library
-------
+- Issue #1368247: set_charset (and therefore MIMEText) now automatically
+ encodes a unicode _payload to the output_charset.
+
- Issue #7150: Raise OverflowError if the result of adding or subtracting
timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.