Open GoogleCodeExporter opened 9 years ago
Same problem here. Doesn't matter if reader.MoveNext is called with true or
false. Using source from 20140118.
Best regards
Original comment by Michal.A...@gmail.com
on 28 Jan 2014 at 9:11
Trimming fixes this issue.
Change line
SizeInBytes = Convert.ToInt64(Encoding.ASCII.GetString(buffer, 124, 11), 8);
to
SizeInBytes = Convert.ToInt64(Encoding.ASCII.GetString(buffer, 124, 11).Trim(), 8);
and it works like a charm :)
Not sure if it works with other tar archives (not made with 7-zip 9.20) but I
don't see a reason why it shouldn't.
All the best :)
Original comment by Michal.A...@gmail.com
on 28 Jan 2014 at 9:39
I'm having the same issue. I'm getting an exception at the Mode line
public virtual bool UpdateHeaderFromBytes()
{
FileName = Encoding.ASCII.GetString(buffer, 0, 100);
// thanks to Shasha Alperocivh. Trimming nulls.
Mode = Convert.ToInt32(Encoding.ASCII.GetString(buffer, 100, 7).Trim(), 8);
The SizeinByte line is below this one.
Original comment by ronm3...@hotmail.com
on 11 Sep 2014 at 9:50
Original issue reported on code.google.com by
n...@coherent-labs.com
on 21 Mar 2013 at 8:47