]> granicus.if.org Git - python/commit
Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile.
authorLars Gustäbel <lars@gustaebel.de>
Fri, 14 Oct 2011 10:46:40 +0000 (12:46 +0200)
committerLars Gustäbel <lars@gustaebel.de>
Fri, 14 Oct 2011 10:46:40 +0000 (12:46 +0200)
commitac3d137a303d579d7b02af083fda90309ab9378a
treef2a127ab571e02a09f910b7309961b73849642cf
parent82ac9bcdb3844369fd9274b559fab073a0142b1e
Issue #13158: Fix decoding and encoding of base-256 number fields in tarfile.

The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS