[issue28831] Python 3's shutil.make_archive is truncating filenames

STINNER Victor report at bugs.python.org
Tue Nov 29 07:02:29 EST 2016


STINNER Victor added the comment:

An entry in a TAR archive has a name. The name field has a size of 100 bytes. The field is padded with zero bytes. I don't know if it must or must not end with a zero byte.

'/usr/share/ca-certificates/mozilla/TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.crt' string encoded to UTF-8 takes 104 bytes.

Python should emit a warning or even fail with an error if a name is longer than 100 *bytes* (not 100 *characters*).

----------
nosy: +haypo, lars.gustaebel

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


More information about the Python-bugs-list mailing list