Skip Menu |

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 103279
Status: open
Priority: 0/
Queue: Archive-Tar

Owner: Nobody in particular
Requestors: paul.kolano [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

MIME-Version: 1.0
X-Spam-Status: No, score=-6.91 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Content-Disposition: inline
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <20150402201141.GD66407 [...] macopss-MacBook-Pro-2.local>
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -6.91
Received: from localhost (localhost []) by (Postfix) with ESMTP id 73E522403E6 for <cpan-bug+archive-tar [...]>; Thu, 2 Apr 2015 16:11:55 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 36YTJgwphuA2 for <cpan-bug+archive-tar [...]>; Thu, 2 Apr 2015 16:11:52 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id 3946D2403E2 for <bug-archive-tar [...]>; Thu, 2 Apr 2015 16:11:50 -0400 (EDT)
Received: (qmail 9141 invoked by alias); 2 Apr 2015 20:11:49 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Thu, 02 Apr 2015 13:11:47 -0700
Received: from ( []) by (Postfix) with ESMTP id EEFA52D809F for <bug-archive-tar [...]>; Thu, 2 Apr 2015 15:08:42 -0500 (CDT)
Received: from ( []) by ( with ESMTP id t32KBg0W006370 for <bug-archive-tar [...]>; Thu, 2 Apr 2015 15:11:42 -0500
Received: from localhost ( by ( with Microsoft SMTP Server (TLS) id; Thu, 2 Apr 2015 15:11:42 -0500
Delivered-To: cpan-bug+archive-tar [...]
User-Agent: Mutt/1.5.23 (2014-03-12)
Subject: Archive::Tar strips trailing whitespace from extracted file names
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-04-02_06:,, signatures=0
Return-Path: <paul.kolano [...]>
X-RT-Mail-Extension: archive-tar
X-Original-To: cpan-bug+archive-tar [...]
Date: Thu, 2 Apr 2015 13:11:41 -0700
X-Originating-Ip: []
To: <bug-archive-tar [...]>
From: Paul Kolano <paul.kolano [...]>
X-RT-Original-Encoding: ascii
X-RT-Interface: Email
Content-Length: 902
Download (untitled) / with headers
text/plain 902b
Trailing whitespace is stripped from file names during extraction. To reproduce, create tar containing file with trailing whitespace: Show quoted text
> mkdir test > echo foo >test/"space_after " > tar cvf test.tar test
test/ test/space_after Program to extract ( #!/usr/bin/env perl use Archive::Tar; my $tar = Archive::Tar->new; $tar->read("test.tar"); $tar->extract(); Extract using Show quoted text
> > mv test test.bak > > diff -r test test.bak
Only in test: space_after Only in test.bak: space_after The extracted "space_after " will be created as "space_after". I believe this can be fixed by changing name from A100 to Z100 in the Archive::Tar::File unpack string. Haven't tested, but A155 prefix field is likely also a problem and possibly uname/gname (OSX can have spaces in group name although not sure if they can be trailing).
MIME-Version: 1.0
In-Reply-To: <20150402201141.GD66407 [...] macopss-MacBook-Pro-2.local>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20150402201141.GD66407 [...] macopss-MacBook-Pro-2.local>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-11388-1428079088-1077.103279-0-0 [...]>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 183
Download (untitled) / with headers
text/plain 183b
I opened an issue on the repo: It will probably help to make a pull-request, although there is an open PR on there that is quite old.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to