Sergey Poznyakoff wrote:
> > The GNU tar maintainer is working a GNU pax program. Maybe he will also
> > provide a command-line option for GNU tar that would perform the same
> > filename charset conversions (suitable for 'tar' archives with UTF-8
> > filenames)?
>
> It has already been implemented.
>
> Current version of GNU tar (1.15.1) performs this conversion
> automatically when operating on an archive file in pax format.

Thanks, indeed that works: When I create a .pax file (*) in an UTF-8 locale
and use GNU tar 1.15.1 to unpack it in an ISO-8859-15 locale, the filenames
are correctly converted.

But it is hard to switch the general distribution of tar files to pax format,
because - while a tar as old as GNU tar 1.11p supports pax files with just
a warning, and AIX, HP-UX and IRIX tar similarly - the Solaris and OSF/1
/usr/bin/tar refuse to unpack them.

Could you add to GNU tar an option, so that it performs the filename conversion
_also_ when reading or creating archives in 'tar' format?

Bruno


(*) It's funny that to create a .pax file I have to use "tar -H pax", because
"pax" on my system is OpenBSD's pax, which rejects the option "-x pax": it
can only create cpio and tar archives, despite its name :-)


--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to