New submission from Serhiy Storchaka:

>>> import quopri, email.quoprimime
>>> quopri.decodestring(b'==41')
b'=41'
>>> email.quoprimime.decode('==41')
'=A'

I don't see a rule about double '=' in RFC 1521-1522 or RFCs 2045-2047 and I 
think quopri is wrong.

Other half of this bug (encoding '=' as '==') was fixed in 9bc52706d283.

----------
components: Library (Lib), email
messages: 189663
nosy: Jeremy.Hylton, barry, gvanrossum, r.david.murray, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Inconsistency between quopri.decodestring() and email.quoprimime.decode()
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18022>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to