Message103117
If any directory higher up in the hierarchy contains unicode chars, tarfile.open fails with UnicodeDecodeError. Attached script reproduces this error.
[tmp]% python tarfilefail.py
Traceback (most recent call last):
File "tarfilefail.py", line 9, in <module>
tarfile.open(file_name, 'w')
File "/usr/lib/python2.6/tarfile.py", line 1682, in open
return cls.taropen(name, mode, fileobj, **kwargs)
File "/usr/lib/python2.6/tarfile.py", line 1692, in taropen
return cls(name, mode, fileobj, **kwargs)
File "/usr/lib/python2.6/tarfile.py", line 1527, in __init__
self.name = os.path.abspath(name) if name else None
File "/usr/lib/python2.6/posixpath.py", line 338, in abspath
path = join(os.getcwd(), path)
File "/usr/lib/python2.6/posixpath.py", line 70, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 17: ordinal not in range(128)
[tmp]% |
|
Date |
User |
Action |
Args |
2010-04-14 09:50:04 | parthm | set | recipients:
+ parthm |
2010-04-14 09:50:03 | parthm | set | messageid: <1271238603.95.0.608393654552.issue8396@psf.upfronthosting.co.za> |
2010-04-14 09:50:02 | parthm | link | issue8396 messages |
2010-04-14 09:50:00 | parthm | create | |
|