Skip Menu |

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

Report information
The Basics
Id: 2859
Status: resolved
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: Olaf.Janssen [...] de.ina.com
Cc:
AdminCc:

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



Subject: binmode on Win32
There seem to be binmode statements missing in order to work reliably under Win32 operating systems (maybe in Archive::Tar::_get_handle and Archive::Tar::File::_new_from_file).
[guest - Fri Jun 27 00:31:18 2003]: Show quoted text
> There seem to be binmode statements missing in order to work reliably > under Win32 operating systems (maybe in Archive::Tar::_get_handle and > Archive::Tar::File::_new_from_file).
what test seems to fail? or do you have a test script illustrating the problem?
From: Olaf.Janssen [...] de.ina.com
[KANE - Fri Jun 27 03:22:52 2003]: Show quoted text
> what test seems to fail? or do you have a test script illustrating the > problem?
when adding files containing \r\n line endings to an archive they get converted to \n. The resulting archive is corrupt because the block length calculation seems to be confused. Adding binmode $fh; to Archive::Tar::File::_new_from_file solves the problem
From: Olaf.Janssen [...] de.ina.com
[KANE - Fri Jun 27 03:22:52 2003]: Show quoted text
> what test seems to fail? or do you have a test script illustrating the > problem?
when adding files containing \r\n line endings to an archive they get converted to \n. The resulting archive is corrupt because the block length calculation seems to be confused. Adding binmode $fh; to Archive::Tar::File::_new_from_file solves the problem
From: Olaf.Janssen [...] de.ina.com
[KANE - Fri Jun 27 03:22:52 2003]: Show quoted text
> what test seems to fail? or do you have a test script illustrating the > problem?
when adding files containing \r\n line endings to an archive they get converted to \n. The resulting archive is corrupt because the block length calculation seems to be confused. Adding binmode $fh; to Archive::Tar::File::_new_from_file solves the problem