[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2016-09-11 Thread R. David Murray
R. David Murray added the comment: I've fixed this to the extent that it is possible without adding support for the 'binary' CTE. That is, \r, \n, and \r\n are still replaced with the 'correct' line ending characters, which is the correct behavior under the RFCs even for binary data if the CT

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0f5702e0f10 by R David Murray in branch '3.5': #19003: Only replace \r and/or \n line endings in email.generator. https://hg.python.org/cpython/rev/c0f5702e0f10 New changeset ccad4d142934 by R David Murray in branch 'default': Merge: #19003: Only r

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2015-09-18 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +John.Mark.Vandenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2014-10-04 Thread Fabian
Fabian added the comment: I can confirm this on 3.4.1 and is really annoying. But the patch should set '_is_raw_payload' to False if the payload is set via 'set_payload' (the operations in 'set_raw_payload' need to be switched). -- nosy: +xZise ___

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2014-06-28 Thread 天一 何
天一 何 added the comment: This patch added special behavior with MIMEApplication and may fix this issue. Can be verified with test_email. -- keywords: +patch Added file: http://bugs.python.org/file35799/issue19003_email.patch ___ Python tracker

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2014-06-28 Thread 天一 何
天一 何 added the comment: Confirmed in Python 3.4.1. -- nosy: +天一.何 versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list ma

[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2013-09-11 Thread Alexander Kruppa
New submission from Alexander Kruppa: This is a follow-up to #16564. In that issue, BytesGenerator was changed to accept a bytes payload, however processing binary data that way leads to data corruption. Repost of the update I posted in #16564: