Closed 50eff062-408a-4098-b1b2-8222303b9d0c closed 23 years ago
Archiving a file with the "zipfile.py" module, when the file's path is saved in the archive, the path is not normalized: the separator under windows platform remain the "\", but the standard zip file format say (from http://www.pkware.com/appnote.txt) it should be "/":
"""filename: (Variable)
The name of the file, with optional relative path. The path stored should not contain a drive or device letter, or a leading slash. All slashes should be forward slashes '/' as opposed to backwards slashes '\' for compatibility with Amiga and Unix file systems etc. """
Some windows unzipper signals the problem (for example PowerArchiver show a non-letal "Invalid file format" while uncompressing the archive, and then proceeds unzipping)
Logged In: YES user_id=3066
Fixed in Lib/zipfile.py revision 1.15.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields: ```python assignee = 'https://github.com/freddrake' closed_at =
created_at =
labels = ['library']
title = 'path not normalized under win'
updated_at =
user = 'https://bugs.python.org/anonymous'
```
bugs.python.org fields:
```python
activity =
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation =
creator = 'anonymous'
dependencies = []
files = []
hgrepos = []
issue_num = 440693
keywords = ['patch']
message_count = 2.0
messages = ['36972', '36973']
nosy_count = 1.0
nosy_names = ['fdrake']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue440693'
versions = []
```