diff options
author | R. David Murray <rdmurray@bitdance.com> | 2011-01-07 21:57:25 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2011-01-07 21:57:25 (GMT) |
commit | 6f0022d84af15d51ffa1606991f2b6e9e56448ed (patch) | |
tree | a47fdc84c7487741c7f07b3612f96e70facd677f /Misc | |
parent | 7088abdca6c3e1285c66f51fe907e6c3446773ed (diff) | |
download | cpython-6f0022d84af15d51ffa1606991f2b6e9e56448ed.zip cpython-6f0022d84af15d51ffa1606991f2b6e9e56448ed.tar.gz cpython-6f0022d84af15d51ffa1606991f2b6e9e56448ed.tar.bz2 |
Fix formatting of values with embedded newlines when rfc2047 encoding
Before this patch if a value being encoded had an embedded newline,
the line following the newline would have no leading whitespace,
and the whitespace it did have was encoded into the word. Now
the existing whitespace gets turned into a blank, the way it does
in other header reformatting, and the _continuation_ws gets added
at the beginning of the encoded line.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -40,6 +40,11 @@ Core and Builtins Library ------- +- email.header.Header was incorrectly encoding folding white space when + rfc2047-encoding header values with embedded newlines, leaving them + without folding whitespace. It now uses the continuation_ws, as it + does for continuation lines that it creates itself. + - Issue #10827: Changed the rules for 2-digit years. The time.asctime function will now format any year when ``time.accept2dyear`` is false and will accept years >= 1000 otherwise. The year range @@ -47,7 +52,6 @@ Library dependent, but ``time.mktime`` will now accept full range supported by the OS. Conversion of 2-digit years to 4-digit is deprecated. - - Issue #7858: Raise an error properly when os.utime() fails under Windows on an existing file. |