GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — ZipInfo filename is mangled when os.sep is not '/' · Issue #94529 · python/cpython Open Labels OS-unsupportedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug report The ZipInfo object within ZipFile performs an explicit translation of the filename. Lines 378 to 382 in 7db1d2e
I believe this is intended to make it easy to use on Windows where you might pass an explicit pathname to the ZipInfo object creation. On Windows the filesystem separator is commonly However, the logic is broken on systems where the To demonstrate this, it is possible to do a very simple command line example: In the real world, this breaks any possibility of using this module on RISC OS where the filesystem separator in I believe that the intention of the object is that:
As such, I believe the referenced code is broken, and to retain the above assumptions and to allow the handling of zip archives on systems where This removes the overzealous replacement of Further problems exist with the There are some issues which might be related to this (but this change does not preclude them): #90139 and #92184. Your environment
Activity
MetadataMetadataAssigneesLabelsOS-unsupportedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions | ||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |