We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828bc55 commit 38bc1b1Copy full SHA for 38bc1b1
1 file changed
Misc/NEWS.d/next/Library/2026-05-19-19-00-49.gh-issue-84353.ZU5zaQ.rst
@@ -1,4 +1,5 @@
1
Preserve non-UTF-8 encoded filenames when appending to a
2
-:class:`zipfile.ZipFile`. Previously, names stored in a legacy encoding
3
-(without the UTF-8 flag bit set) were corrupted when the central directory
4
-was rewritten.
+:class:`zipfile.ZipFile`. Previously, non-ASCII names stored in a legacy
+encoding (without the UTF-8 flag bit set) could be corrupted when the
+central directory was rewritten: they were decoded as cp437 and then
5
+re-stored as UTF-8.
0 commit comments