]> granicus.if.org Git - python/commit
Added errors argument to TarFile class that allows the user to
authorLars Gustäbel <lars@gustaebel.de>
Sun, 27 May 2007 19:49:30 +0000 (19:49 +0000)
committerLars Gustäbel <lars@gustaebel.de>
Sun, 27 May 2007 19:49:30 +0000 (19:49 +0000)
commita0fcb9384ead24c412b93a4de903788eb5828dbe
tree6bf71c1d2d2943690bd59f838561520fcaadfdbf
parent0ac601995ccd123696b44b0194c3718f8d364c07
Added errors argument to TarFile class that allows the user to
specify an error handling scheme for character conversion. Additional
scheme "utf-8" in read mode. Unicode input filenames are now
supported by design. The values of the pax_headers dictionary are now
limited to unicode objects.

Fixed: The prefix field is no longer used in PAX_FORMAT (in
conformance with POSIX).
Fixed: In read mode use a possible pax header size field.
Fixed: Strip trailing slashes from pax header name values.
Fixed: Give values in user-specified pax_headers precedence when
writing.

Added unicode tests. Added pax/regtype4 member to testtar.tar all
possible number fields in a pax header.

Added two chapters to the documentation about the different formats
tarfile.py supports and how unicode issues are handled.
Doc/lib/libtarfile.tex
Lib/tarfile.py
Lib/test/test_tarfile.py
Lib/test/testtar.tar
Misc/NEWS