[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

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 rep...@bugs.python.org

[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 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

[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

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

2015-05-01 Thread July Tikhonov
Changes by July Tikhonov july.t...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24110 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue24110 ___