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

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


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

First, use a string pathname for extractall(). Most likely, your script is going to work. Convert all pathnames to strings using sys.getfilesystemencoding() before you add() them. Ensure that all systems you are going to use the archives on have the same filesystem encoding, e.g. utf-8. Pax archives are probably the best choice if you plan to keep the archives for several years. If you simply want to transfer data from one system to the other throwing the archives away afterwards, the format is rather irrelevant.

----------

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


More information about the Python-bugs-list mailing list