New submission from Soren Solari:

According to the PDF Spec http://www.adobe.com/devnet/pdf/pdf_reference.html 
section 7.4.3,
The ascii85decode function only utilizes ~> as an EOD 2byte character, there is 
no mention of leading <~.   Therefore using the base64.a85decode(data, 
adobe=True) does not work on valid data coming from a pdf because that data may 
not have a leading <~.

Solution: do not require leading <~ for adobe=True.

----------
messages: 256745
nosy: Soren Solari
priority: normal
severity: normal
status: open
title: base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing 
error
type: behavior
versions: Python 3.5

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

Reply via email to