Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Sorry, probably I saw illusion... If uses cp932 codec, still test_tarfile.py reports error. :-(
====================================================================== ERROR: test_tar_size (__main__.WriteTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_tarfile.py", line 570, in test_tar_size tar.add(path) File "/home/WhiteRabbit/python-dev/py3k/Lib/tarfile.py", line 1953, in add self.addfile(tarinfo, f) File "/home/WhiteRabbit/python-dev/py3k/Lib/tarfile.py", line 1976, in addfile buf = tarinfo.tobuf(self.format, self.encoding, self.errors) File "/home/WhiteRabbit/python-dev/py3k/Lib/tarfile.py", line 987, in tobuf return self.create_gnu_header(info, encoding, errors) File "/home/WhiteRabbit/python-dev/py3k/Lib/tarfile.py", line 1018, in create_ gnu_header return buf + self._create_header(info, GNU_FORMAT, encoding, errors) File "/home/WhiteRabbit/python-dev/py3k/Lib/tarfile.py", line 1107, in _create _header stn(info.get("gname", "root"), 32, encoding, errors), File "/home/WhiteRabbit/python-dev/py3k/Lib/tarfile.py", line 177, in stn s = s.encode(encoding, errors) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordin al not in range(128) _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3824> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com