[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

Martin Panter report at bugs.python.org
Sun Mar 26 08:08:43 EDT 2017


Martin Panter added the comment:

The double equals "==" case for the “quopri” implementation in Python is now consistent with the others thanks to the fix in Issue 23681 (see also Issue 21511).

According to Issue 20121, the quopri (Python) implementation only supports LF (\n) characters as line breaks, and the binascii (C) implementation also supports CRLF. So I agree that the whitespace-before-newline case "= \n" is a genuine bug (see Issue 16473). But the CR case "=\r" is not supported because neither quopri nor binascii support universal newlines or CR line breaks on their own.

----------

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


More information about the Python-bugs-list mailing list