[issue20121] quopri_codec newline handling

Martin Panter report at bugs.python.org
Wed Dec 17 21:11:15 CET 2014


Martin Panter added the comment:

Okay so maybe the documentation should include these restrictions on encoding:

* The data being encoded should only include \r or \n bytes that are part of \n or \r\n newline sequences. Encoding arbitrary non-text data is not supported.
* The two kinds of newlines should not be mixed
* If \n is used for newlines in the input, the encoder will output \n newlines, and they will need converting to CRLF in a later step to conform to the RFC

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20121>
_______________________________________


More information about the Python-bugs-list mailing list