bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] mac os x or general charset problem patch


From: Joerg Schilling
Subject: Re: [Bug-tar] mac os x or general charset problem patch
Date: Thu, 15 Dec 2005 12:44:46 +0100
User-agent: nail 11.2 8/15/04

Heiko Voigt <address@hidden> wrote:

> In this case I would like to file a feature request for GNU tar. Should I help
> with the development somehow?

In case you did not find this out already:

Your problem is caused by the fact that you are using a OS that is "optimized" 
for a single user scenario where the OS dictates the file name coding.

POSIX has no intention to supply a solution for your problem.
If you like to stay with POSIX.1-1988 tar archives, you need to make sure that
both target OS support the same coding or you need to stick with US-ASCII
(7 bit) filenames.

POSIX describes a solution for your problem in case you are using a POSIX.1.2001
compliant tar archive. Star is prepared for POSIX compliant and automated 
conversion 
of filenames since August 2001. If you like to help in this area, you should 
have a look at star and the calls to from_utf8l()/to_utf8l() conversions in 
xheader.c. If you hack them to use iconv() rather than the simple routines 
found in unicode.c, yo would have the solution you are looking for.

You would need to use suitable archive format at _create_ side already...

star H=help gives:

        v7tar   Old UNIX V7 tar format
        tar     Old BSD tar format
        star    Old star format from 1985
        gnutar  GNU tar format 1989 (violates POSIX)
        ustar   Standard POSIX.1-1988 tar format
        xstar   Extended standard tar (star 1994)
        xustar  'xstar' format without tar signature
-->     exustar 'xustar' format - always x-header
-->     pax     Extended POSIX.1-2001 standard tar
        suntar  Sun's extended pre-POSIX.1-2001
        bin     cpio UNIX V7 binary format
        cpio    cpio POSIX.1-1988 format
        odc     cpio POSIX.1-1988 with SYSv compat
        asc     SYSvr4 cpio ascii expanded device #
        crc     'asc' format + CRC

The two marked archive formats (and in case you use "star -dump ...")
will create the right archive format.



> By the way, as Joerg always seemed to talk about star. Are the created 
> archives
> compatible to the ones of GNU tar? I've just seen that it has its own archive
> format manpage which gives me the impression there are some differences.

GNU tar's TAR compatibility was not sufficient in former times, this has become
better recently.


> Joerg: How would one specify bytes for the regular expressions like
> /(latin1)"a/ae/ with the -s option?

In case you like to stick to old archive formats, this would be a possible 
solution.


Jörg

-- 
 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden           (uni)  
       address@hidden   (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily




reply via email to

[Prev in Thread] Current Thread [Next in Thread]