[New-bugs-announce] [issue40172] ZipInfo corrupts file names in some old zip archives

Yudi report at bugs.python.org
Fri Apr 3 10:55:40 EDT 2020


New submission from Yudi <yudilevi at gmail.com>:

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 page which might corrupt them.

----------
components: Library (Lib)
files: example.zip
messages: 365701
nosy: yudilevi
priority: normal
severity: normal
status: open
title: ZipInfo corrupts file names in some old zip archives
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49030/example.zip

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40172>
_______________________________________


More information about the New-bugs-announce mailing list