[issue20121] quopri_codec newline handling

Martin Panter report at bugs.python.org
Wed Dec 17 12:52:23 CET 2014


Martin Panter added the comment:

RFC 1521 says that a text newline should be encoded as CRLF, and that any combination of 0x0D and 0x0A bytes that do not represent newlines should be encoded like other control characters as =0D and =0A.

Since in Python 3 the codec outputs bytes, I don’t think there is any excuse for it to be outputting plain CR or LF bytes. The question is, do they represent newlines to be encoded as CRLF, or just data bytes that need ordinary encoding.

----------
nosy: +vadmium
versions: +Python 3.4

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


More information about the Python-bugs-list mailing list