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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28831>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to