[issue37005] bz2 module doesn't write end-of-stream marker

2019-06-05 Thread Dobatymo
Change by Dobatymo : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue37005] bz2 module doesn't write end-of-stream marker

2019-06-02 Thread Dobatymo
Dobatymo added the comment: Sorry, I forgot about the bit alignment when I was checking for the footer. This can be closed then. -- ___ Python tracker ___ ___

[issue37005] bz2 module doesn't write end-of-stream marker

2019-06-02 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Sorry, the StreamFooter starts at byte 0x1f bit 1, not 0x20 bit 6. -- ___ Python tracker ___ _

[issue37005] bz2 module doesn't write end-of-stream marker

2019-06-02 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The bz2 library and the bzip2 utility generate identical files. For example: >>> import bz2 >>> with bz2.open('bz2test.txt.bz2', mode='wb') as f: ... f.write(b'foobar') ... 6 generates this file: $ hexdump bz2test.txt.bz2 000 42 5a 68 39 31 41 59

[issue37005] bz2 module doesn't write end-of-stream marker

2019-05-28 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37005] bz2 module doesn't write end-of-stream marker

2019-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you, I have added Serhiy and Thomas for this issue but I have removed the versions 3.7, 3.6, 3.5 and 2.7. Maybe it's a new feature for the next versions of Python. -- nosy: +matrixise, serhiy.storchaka, twouters versions: -Python 2.7, Python 3

[issue37005] bz2 module doesn't write end-of-stream marker

2019-05-21 Thread Dobatymo
New submission from Dobatymo : According to https://en.wikipedia.org/wiki/Bzip2 the reference implementation of bzip2 writes an end-of-stream marker (also called stream footer) with a magic number and a stream checksum to the file. Python does not do so. The files can still be read by all bzi