Closed shelart closed 5 years ago
use iconv
@shelart do you mind turning this into a test case and PR'ing it?
@mafintosh I will try. I'll comment here about results
@mafintosh I'm sorry for the inconvience.
I trusted to 7-Zip when opened the issue. It shows a created tarball as containing two PaxHeader
files.
Detailed investigation shown that this is a problem of 7-Zip which seems not supporting PaxHeader TAR extension.
I re-checked the created tarball with WinRAR and with Linux tar
, they work as expected.
So I'm closing the issue.
I've written simple code, it just copies a
.tar
to another one logging files names:Also I've created an
example.tar
with a single file namedТестовый файл.txt
(Cyrillic characters in the file name). When I ran my code above, I've gotexample.new.tar
with 2 files, both are namedPax Header
. One of them contains:Another
Pax Header
contains the full content ofТестовый файл.txt
.Moreover, once I re-ran the code applying it to the
example.new.tar
(with those 2PaxHeader
's) I've got a tarball with, also, 2PaxHeader
's, but one of them was:Another, again, was exact my original
Тестовый файл.txt
.I believe it's a bug of
pack()
.