[issue5500] tarfile: path problem in arcname under windows

Elijah Merkin report at bugs.python.org
Thu Mar 19 15:37:09 CET 2009


Elijah Merkin <elm at transas.com> added the comment:

Tested again under Python 2.6.1 on Windows XP (added Python 2.6 to
versions).

An archive I attached to the issue contains a .py file that reproduces
the bug and an archive created by it.

In my case I just put the .py file to C:\testtarfile\ directory and run it.

When I open the file by any archive manager I have in Windows, I see.
When I view the file contents in a hex viewer, I also see
'C:\\testtarfile\...', so the problem really exists. However, when
uncompressing the archive on Linux (tar -xzf ...) I get
'test/testtarfile.py' as initially expected.

 The archive is created, and the path in the archive is
'C:\\testtarfile\\testtarfile.py', not 'test/testtarfile.py' as I would
expect.

----------
versions: +Python 2.6
Added file: http://bugs.python.org/file13375/reproduce_issue5500.zip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5500>
_______________________________________


More information about the Python-bugs-list mailing list