WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.28k stars 783 forks source link

Tar files are not recognized if not ending with the `.tar` extension #1236

Open stdedos opened 2 years ago

sdottaka commented 2 years ago

Unlike zip files, tar files do not have a fixed signature. For this reason, unfortunately, even with the "Detect archive type from file signature" option enabled, WinMerge cannot consider a file with a non-tar extension to be a tar file.

Gitoffthelawn commented 2 years ago

What would happen if WinMerge simply assumed any file with a .tar extension is an archive? Any errors need to be trapped whether or not the file is actually an archive.

stdedos commented 2 years ago

Unlike zip files, tar files do not have a fixed signature.

Oh yeah, you are right Especially for the files I repro'ed it with, they literally start with the file paths first - no magic signature 😕

sdottaka commented 2 years ago

What would happen if WinMerge simply assumed any file with a .tar extension is an archive? Any errors need to be trapped whether or not the file is actually an archive.

WinMerge always considers files with the extension tar to be archive files when Archive support is enabled. If the file is not actually in tar format, you will get the following error: (This error message is confusing ...)

image

stdedos commented 2 years ago

(This error message is confusing ...)

This error message is suuuuper confusing 😅