[issue26740] tarfile: accessing (listing and extracting) tarball fails with UnicodeDecodeError

2016-04-12 Thread Tomas Tomecek
New submission from Tomas Tomecek: I have a tarball (generated by docker-1.10 via `docker export`) and am trying to extract it with python 2.7 tarfile: ``` with tarfile.open(name=tarball_path) as tar_fd: tar_fd.extractall(path=path) ``` Output from a pytest run: ``` /usr/lib64/python2.7

[issue26740] tarfile: accessing (listing and extracting) tarball fails with UnicodeDecodeError

2016-04-12 Thread Tomas Tomecek
Tomas Tomecek added the comment: Unfortunately I can't, since it's internal docker image. I have found a bug report in Red Hat bugzilla with more info: https://bugzilla.redhat.com/show_bug.cgi?id=1194473 Here's even a commit with a fix (via monkeypatching): https://github.com/