[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

Terry J. Reedy report at bugs.python.org
Mon Dec 26 08:46:51 CET 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I just took a look as the 3.2 tarfile code and see that it always (because self.name is always unicode) does the same encoding, with 'replace', referencing RFC1952. Although there are a few other differences, they appear inconsequential, so that the code otherwise should behave the same. Reading further on codec error handling, I gather that my previously understanding was off; non-Latin1 chars will just all appear as '?' instead of raising an exception. While that is normally useless, it does not matter since the result is not used. So I agree to call this fixed.

----------
resolution:  -> fixed
status: open -> closed

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


More information about the Python-bugs-list mailing list