diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-06-02 22:11:01 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-06-02 22:11:01 (GMT) |
commit | e036af0ce5a564b958381e49c61a91f7a3591d1a (patch) | |
tree | 90544abfc3edce5e786e44598d411337fb013221 /Misc | |
parent | b56b50ddd149fd0d81e8b37d38efac60e736da9e (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |