[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2020-12-08 Thread Irit Katriel
Irit Katriel added the comment: That part of the documentation was updated here by Serhiy: https://github.com/python/cpython/pull/10592 -- nosy: +iritkatriel ___ Python tracker _

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2016-01-30 Thread Patrik Dufresne
Patrik Dufresne added the comment: Manage to work around this issue by using surrogateescape for arcname and filename. For me it's no longer an issue. -- ___ Python tracker ___

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2016-01-02 Thread R. David Murray
R. David Murray added the comment: As noted, adding that support is the subject of issue 10757. -- ___ Python tracker ___ ___ Python-b

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2016-01-02 Thread Patrik Dufresne
Patrik Dufresne added the comment: I'm converting my project into python3. I'm encountering issue with zipfile encoding. Look like, it only support unicode path. This is a huge issue since path are, by definition, bytes. You may store a file name with an invalid character without issue on the

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-02 Thread R. David Murray
R. David Murray added the comment: Ah, I *thought* there was an issue for that, but I didn't find it when I searched. So this is just a doc issue to fix the docs to reflect current reality. -- ___ Python tracker

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed, the note is outdated and incorrect. First, general unicode filename are allowed. They are encoded with UTF-8 internally. Second, currently there is no way to create an entry without encoding the filename to UTF-8 (if it is not ASCII-only). So you can

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-01 Thread R. David Murray
R. David Murray added the comment: We should either make it work with byte filenames, or allow control of the filename encoding. See also issue 20329. Unfortunately that part is probably a new feature. In the meantime the docs should be fixed: I believe we automatically encode the filename

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-01 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: This documentation is correct for python2 but maybe not for python3. To check. -- nosy: +matrixise ___ Python tracker ___

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-01 Thread July Tikhonov
Changes by July Tikhonov : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-01 Thread July Tikhonov
New submission from July Tikhonov: In documentation of zipfile.ZipFile.write() there is following notice: "There is no official file name encoding for ZIP files. If you have unicode file names, you must convert them to byte strings in your desired encoding before passing them to write()." I u