Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error comparing files with a specific file extension #1024

Open
GediMini opened this issue Oct 25, 2021 · 4 comments
Open

Error comparing files with a specific file extension #1024

GediMini opened this issue Oct 25, 2021 · 4 comments

Comments

@GediMini
Copy link

GediMini commented Oct 25, 2021

The program throws an error "The file cannot be accessed by the system" every time when I try to compare two files with extension .dmg. These are simple text files and the paths are specified correctly. As soon as I simply rename one of the files to have a different extension (e.g. .dmgx), file comparison works as intended. File content has no relevance to the error.

Changing the file names back to include the .dmg extension makes the error re-appear. This makes me think that there's something wrong with how the file name strings are read and parsed.

image

I have only encountered this error with extension .dmg, but have not tested to see if a specific substring or another extension would cause the same issue.

Additional info

Running v2.16.4.0 x64 on Windows 10.

@sdottaka
Copy link
Member

sdottaka commented Oct 25, 2021

I compared the following dmg files with WinMerge version 2.16.4 and version 2.16.14, but couldn't reproduce the problem.

https://github.com/osxfuse/osxfuse/releases/download/macfuse-4.2.1/macfuse-4.2.1.dmg
https://github.com/osxfuse/osxfuse/releases/download/macfuse-4.2.0/macfuse-4.2.0.dmg

If a reproducible file is available for download, please tell me the URL.

WinMerge expands and compares the contents of the dmg files when Archive file support is enabled. Please let me know whether you get the same error when disabling Archive file support.
image

@sdottaka
Copy link
Member

sorry. I skipped the fact that it was a text file with the extension dmg.

Now I can reproduce this problem.

@sdottaka
Copy link
Member

sdottaka commented Oct 25, 2021

WinMerge considers the dmg file to be an Apple Disk Image on macOS and uses 7-zip to extract the file.

However, WinMerge displayed this error because the dmg file you tried to compare was just a text file.

For now, to compare dmg files with text files in WinMerge, you need to disable Archive file support.

@GediMini
Copy link
Author

Thank you! Disabling archive file support works great, I wasn't aware of the meaning behind that particular file extension, this is good to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants