This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2020年06月21日 20:08 by serhiy.storchaka, last changed 2022年04月11日 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 21040 | merged | serhiy.storchaka, 2020年06月22日 07:27 | |
| PR 21048 | merged | miss-islington, 2020年06月22日 08:24 | |
| PR 21049 | closed | miss-islington, 2020年06月22日 08:24 | |
| PR 21050 | merged | miss-islington, 2020年06月22日 08:26 | |
| Messages (4) | |||
|---|---|---|---|
| msg372018 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2020年06月21日 20:08 | |
When open a ZIP archive, write a file with non-ascii name in it, and, not closing the archive, read that file back, it fails:
>>> import zipfile
>>> with zipfile.ZipFile('test.zip', 'w') as zf:
... zf.writestr('йцукен', '')
... zf.read('йцукен')
...
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/usr/lib/python3.8/zipfile.py", line 1440, in read
with self.open(name, "r", pwd) as fp:
File "/usr/lib/python3.8/zipfile.py", line 1521, in open
raise BadZipFile(
zipfile.BadZipFile: File name in directory 'йцукен' and header b'\xd0\xb9\xd1\x86\xd1\x83\xd0\xba\xd0\xb5\xd0\xbd' differ.
|
|||
| msg372047 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2020年06月22日 08:24 | |
New changeset 36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e by Serhiy Storchaka in branch 'master': bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040) https://github.com/python/cpython/commit/36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e |
|||
| msg372051 - (view) | Author: miss-islington (miss-islington) | Date: 2020年06月22日 08:40 | |
New changeset d7f37d1ed4fd38555e3e5aad32d515c96b528df5 by Miss Islington (bot) in branch '3.8': bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040) https://github.com/python/cpython/commit/d7f37d1ed4fd38555e3e5aad32d515c96b528df5 |
|||
| msg372053 - (view) | Author: miss-islington (miss-islington) | Date: 2020年06月22日 08:46 | |
New changeset c916c48afc02c26a50843c7b381a2b567bb72e46 by Miss Islington (bot) in branch '3.9': bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040) https://github.com/python/cpython/commit/c916c48afc02c26a50843c7b381a2b567bb72e46 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:59:32 | admin | set | github: 85240 |
| 2020年06月28日 13:01:56 | ned.deily | set | versions: - Python 3.7 |
| 2020年06月22日 09:34:31 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2020年06月22日 08:46:15 | miss-islington | set | messages: + msg372053 |
| 2020年06月22日 08:40:18 | miss-islington | set | messages: + msg372051 |
| 2020年06月22日 08:26:37 | miss-islington | set | pull_requests: + pull_request20221 |
| 2020年06月22日 08:24:37 | miss-islington | set | pull_requests: + pull_request20220 |
| 2020年06月22日 08:24:30 | miss-islington | set | nosy:
+ miss-islington pull_requests: + pull_request20219 |
| 2020年06月22日 08:24:20 | serhiy.storchaka | set | messages: + msg372047 |
| 2020年06月22日 07:29:16 | serhiy.storchaka | link | issue41069 dependencies |
| 2020年06月22日 07:27:42 | serhiy.storchaka | set | keywords:
+ patch stage: patch review pull_requests: + pull_request20211 |
| 2020年06月21日 20:40:53 | serhiy.storchaka | set | assignee: serhiy.storchaka |
| 2020年06月21日 20:08:04 | serhiy.storchaka | create | |