This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: winzip cannot extrat tarfile created tars
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: loewis, longsleep
Priority: normal Keywords:

Created on 2004-05-06 10:22 by longsleep, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tarfile.patch longsleep, 2004-05-06 10:22 patch to always set zero bytes on folderish entries
Messages (2)
msg20711 - (view) Author: Simon Eisenmann (longsleep) Date: 2004-05-06 10:22
The tarfile module uses the posix way to handle long
file names per default. This is not supported by lots
of extractors (like winzip). This should be changed not
to be the default. Long file names should be handled by
the gnu extension anytime. right now this is reached by
setting $tarobject.posix = False manually.

In addition the tarfile module sets a file size on
directory entries. This isnt supported as well on well
known extractors like winzip. The size for directory
entries should be zero anytime. I attached a patch to
fix the latter problem.
msg20712 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-18 13:56
Logged In: YES 
user_id=21627

Fixed with patch #995126.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40223
2004-05-06 10:22:43longsleepcreate

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant