[issue40172] ZipInfo corrupts file names in some old zip archives

2022-03-05 Thread Yudi Levi
Yudi Levi added the comment: The main issue is that when extracting older zip files, files are actually written to disk with corrupted (altered) names. Unfortunately it's been a while since I saw this issue and I can't tell if it was fixed or if I simply can't reproduce it

[issue40105] Updating zip comment doesn't truncate the zip file

2020-04-03 Thread Yudi
Change by Yudi : -- keywords: +patch pull_requests: +18698 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19333 ___ Python tracker <https://bugs.python.org/issu

[issue40172] ZipInfo corrupts file names in some old zip archives

2020-04-03 Thread Yudi
Change by Yudi : -- keywords: +patch pull_requests: +18697 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19335 ___ Python tracker <https://bugs.python.org/issu

[issue40172] ZipInfo corrupts file names in some old zip archives

2020-04-03 Thread Yudi
New submission from Yudi : Some old zip files that don't yet use unicode file names might have entries with characters beyond the ascii range. ZipInfo seems to encode these file names with 'cp437' codepage (correct for old zips) but decode them back with 'ascii' code

[issue40105] Updating zip comment doesn't truncate the zip file

2020-03-29 Thread Yudi
New submission from Yudi : Updating the zip file comment to a shorter comment should truncate the zip file at the end of the new comment. Instead, the new comment is written to the zip file but the file length stays the same. For example, for a zip file that has the following zip comment