[issue7693] tarfile.extractall can't have unicode extraction path

Lars Gustäbel report at bugs.python.org
Fri Jan 15 11:05:03 CET 2010


Lars Gustäbel <lars at gustaebel.de> added the comment:

In the 2.x branch tarfile is not prepared to deal with unicode pathnames at all. This changed in Python 3. The fact that it works anyway (in the majority of cases) to add filenames as unicode objects is pure coincidence - I suppose you have a utf-8 system encoding. On a latin-1 system your script would fail much earlier during the add() call.

Some reading: http://docs.python.org/library/tarfile.html#unicode-issues

----------

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


More information about the Python-bugs-list mailing list