-
Notifications
You must be signed in to change notification settings - Fork 96
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
Zip file fails to open for some users #126
Comments
Hi @BullyWiiPlaza, Without a test case, it will be pretty hard to help you. |
@ctabin Thanks for the suggestion. However, an exception with the error message text would be more helpful. I cannot simply look at the console when a user runs my GUI software. Maybe you can consider extending your library with something like this so it can be treated/displayed more easily. |
@BullyWiiPlaza I made a slight improvement so you can set a custom handling for errors in this case so you might have more information. Let me know if this is helpful. |
Thanks, I might try it later at some point. Also a hint for you, since it's a C++ library, using macros is discouraged. You can offer a |
I completely agree with @BullyWiiPlaza, you could provide an error-handler in the form of
|
Implmented in #156. |
I'm using
libzippp
via vcpkg in my software to open a zip file and to access a certain file inside the zip. This seems to work fine for most users but for some users my code fails to open the zip file:Here, the exception is thrown. I confirmed that the file referenced by
zip_file_path
is exactly the same one as expected so no tampering or corruption has occurred with the zip file.open()
failure despite it working on my development machine (and my other 2 test machines)? Can it be an encoding problem of the file path, e.g. if the user comes from Asian countries and uses non-ASCII symbols in the file path? There is no constructor forstd::wstring
file paths or forstd::filesystem::path
objects. My project is compiled with the character setUse Unicode Character Set
in Visual Studio. A previous call tostd::filesystem::is_regular_file(zip_file_path)
yields that the file exists though.The text was updated successfully, but these errors were encountered: