bug-tar
[Top][All Lists]
Advanced

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

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


From: Heiko Voigt
Subject: [Bug-tar] mac os x or general charset problem patch
Date: Fri, 9 Dec 2005 20:33:25 +1300

Hi,

i had problems with extracting archives on mac os x which were packed with a different charset on a linux box. These errors resulted in errors like this:

tar: home/sigrid/Office51/database/Adre\337buch.url: Cannot open: (null)

Because this File had the german character 'sz' in its name which is only defined in the Latin 1 charset. This resulted in the behaviour that open always returned with less than zero.

I implemented a quick and dirty workaround for cases like this which i'll attach as a patch. It simply clamps all characters to the printable ascii set and replaces nonprintable characters with a underscore. This could of course result in the overwriting of other files but as i read from the source that should be avoidable with the '-k' option or?

cheers Heiko

Attachment: patch-tar-1.15.1.diff
Description: Binary data


reply via email to

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