SharpZipLib
SharpZipLib copied to clipboard
xarchiver can't open tar files created with this library
Describe the bug
The .tar files created with the library can be opened with 7zip, they can be extracted with "tar -xf" but the linux program xarchiver (default with some low memory graphical instalations - in my case debian with xfce) says that the archive format is not recognized. Another place where xarchiver is installed by default is the raspberry pi debian instalation.
Reproduction Code
No response
Steps to reproduce
Simplest example I can come up with:
using FileStream os = new FileStream("test.tar", FileMode.Create);
using TarOutputStream tar = new TarOutputStream(os);
byte[] data = Encoding.UTF8.GetBytes("my text contents");
TarEntry entry = TarEntry.CreateTarEntry("myfile.txt");
entry.Size = data.Length;
tar.PutNextEntry(entry);
tar.Write(data);
tar.CloseEntry();
Expected behavior
The archive should be opened normally as it does in other applications.
Operating System
Linux
Framework Version
.NET 6
Tags
Tar
Additional context
There is a chance that xarchiver is just bad considering other software opens the archive. But then again xarchiver opens tar archives made with other software.