[issue10614] ZipFile: add a filename_encoding argument

2016-12-26 Thread INADA Naoki
INADA Naoki added the comment: Thanks. Patch posted in issue28080 looks better than mine. -- stage: patch review -> superseder: -> Allow reading member names with bogus encodings in zipfile ___ Python tracker

[issue10614] ZipFile: add a filename_encoding argument

2016-12-26 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file46043/10614-zipfile-encoding.patch ___ Python tracker ___

[issue10614] ZipFile: add a filename_encoding argument

2016-12-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue28080. -- ___ Python tracker ___ ___ Python-bugs-list

[issue10614] ZipFile: add a filename_encoding argument

2016-12-26 Thread INADA Naoki
Changes by INADA Naoki : Removed file: http://bugs.python.org/file46042/10614-zipfile-encoding.patch ___ Python tracker ___

[issue10614] ZipFile: add a filename_encoding argument

2016-12-26 Thread INADA Naoki
Changes by INADA Naoki : -- components: +Library (Lib) -Extension Modules stage: -> patch review versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file46042/10614-zipfile-encoding.patch

[issue10614] ZipFile: add a filename_encoding argument

2015-09-11 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10614] ZipFile: add a filename_encoding argument

2015-07-21 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: -ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python-bugs-list

[issue10614] ZipFile: add a filename_encoding argument

2014-04-20 Thread INADA Naoki
Changes by INADA Naoki songofaca...@gmail.com: -- nosy: +naoki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python-bugs-list

[issue10614] ZipFile: add a filename_encoding argument

2014-01-21 Thread Laurent Mazuel
Changes by Laurent Mazuel laurent.maz...@gmail.com: -- nosy: +Laurent.Mazuel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___

[issue10614] ZipFile: add a filename_encoding argument

2013-10-18 Thread Sergey Dorofeev
Sergey Dorofeev added the comment: I'd like to submit patch to support zip archives created on systems that use non-US codepage (e.g. russian CP866). Codepage would be specified in additional parameter of ZipFile constructor, named codepage. If it is not specified, old behavior is preserved

[issue10614] ZipFile: add a filename_encoding argument

2013-10-18 Thread STINNER Victor
STINNER Victor added the comment: Please rename codepage to encoding. By the way, 437 is a codepage, cp437 is a (python) encoding. I don't think that ZIP is limited to windows. I uncompressed zip files many times on various OSes, github also produces zip (and github is probably not using

[issue10614] ZipFile: add a filename_encoding argument

2013-10-18 Thread Sergey Dorofeev
Sergey Dorofeev added the comment: OK, here you are: --- zipfile.py-orig 2013-09-18 16:45:56.0 +0400 +++ zipfile.py 2013-10-19 01:59:07.444346674 +0400 @@ -885,7 +885,7 @@ fp = None # Set here since __del__ checks it _windows_illegal_name_trans_table =

[issue10614] ZipFile: add a filename_encoding argument

2013-10-14 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python-bugs-list

[issue10614] ZipFile: add a filename_encoding argument

2012-07-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: umedoblock: your patch is incorrect, as it produces moji-bake. if there is a file name b'f\x94n', it will decode as sjis under your patch (to u'f\u99ac'), even though it was meant as cp437 (i.e. u'f\xf6n'). --

[issue10614] ZipFile: add a filename_encoding argument

2012-07-13 Thread umedoblock
umedoblock umedobl...@gmail.com added the comment: Hi, Martin. I tried your test case with attached file. And I got below result. p3 ./encodings.py encoding: sjis, filename: f馬 encoding: cp437, filename: fön sjis_filename = f馬 cp437_filename = fön There are two success cases. So I think that

[issue10614] ZipFile: add a filename_encoding argument

2012-07-12 Thread umedoblock
umedoblock umedobl...@gmail.com added the comment: I fixed this problem. I make new methos _decode_filename(). -- keywords: +patch nosy: +umedoblock Added file: http://bugs.python.org/file26372/zipfile.patch ___ Python tracker rep...@bugs.python.org

[issue10614] ZipFile: add a filename_encoding argument

2012-04-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python-bugs-list

[issue10614] ZipFile: add a filename_encoding argument

2011-05-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I closed issue #12048 as a duplicate of this issue: yaoyu wants to uncompress a ZIP file having filenames encoded to GBK. -- ___ Python tracker rep...@bugs.python.org

[issue10614] ZipFile: add a filename_encoding argument

2011-01-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: ZipFile and CP932 encoding - ZipFile: add a filename_encoding argument ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614