[issue17656] Python 2.7.4 breaks ZipFile extraction of zip files with unicode member paths

2013-04-08 Thread Vhati
Vhati added the comment: The 2013-04-08 patch worked on Windows XP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17656 ___ ___ Python-bugs

[issue17656] Python 2.7.4 Breaks ZipFile Extraction

2013-04-07 Thread Vhati
New submission from Vhati: Python 2.7.4 fails while extracting zip files when 'member' is a unicode path. --- Traceback (most recent call last): ... my_zip.extract(item, tmp_folder_path) File D:\Apps\Python274\lib\zipfile.py, line 1024, in extract return self._extract_member(member

[issue17656] Python 2.7.4 Breaks ZipFile Extraction

2013-04-07 Thread Vhati
Vhati added the comment: Apparently namelist() can return either ascii or unicode strings for its members, depending on the archive. Obviously this'd apply to literal unicode strings as well. -- ___ Python tracker rep...@bugs.python.org http

[issue17656] Python 2.7.4 Breaks ZipFile Extraction

2013-04-07 Thread Vhati
Vhati added the comment: Oops, passing a unicode literal to extract()'s member arg wouldn't be sufficient. The extract() method quietly converts strings to ZipInfo objects via getinfo(member_string). Then _extract_member() takes the filename attribute of that ZipInfo object, which causes