mcmilk / 7-Zip-zstd

7-Zip with support for Brotli, Fast-LZMA2, Lizard, LZ4, LZ5 and Zstandard
https://mcmilk.de/projects/7-Zip-zstd/
Other
4.87k stars 293 forks source link

Add more supports for .zst / .tzst #318

Closed defrag257 closed 1 year ago

defrag257 commented 1 year ago

GNU/Linux systems use .zst / .tzst for zstd-compressed files, but 7-Zip ZS currently only supports .zstd / .tzstd:

C:\>7z i
...
Formats:
...
 0 CK.....................  zstd     zstd tzstd (.tar) 0 x F D 2 F B 5 2 2 . . 2 8 00
...

The latest version only added file-type association support for .zst / .tzst, but not full support, especially creating a .zst / .tzst file by command line without explicitly specifying its type:

C:\>7z a file.tar.zst file.tar
- Success, but file.tar.zst is in fact a .tar.7z file.
C:\>7z a -tzstd file.tar.zst file.tar
- Finally a .tar.zst file.

Moreover, I think the default extension name should change to .zst, as .zst is now widely used in GNU/Linux systems, and defaulting to .zstd is rather frustrating.

mcmilk commented 1 year ago

This code exists since 2016 ... in this time @Cyan4973 used zstd ... I don't use 7-Zip ZS personally - so I didn't notify this. I will switch to zst in the next release.