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

Creating ZIP archives is not properly handling wchar_t on Windows 11/x64. #430

Open
jjYBdx4IL opened this issue May 4, 2024 · 0 comments
Labels
bug libzip doesn't behave as expected. help wanted

Comments

@jjYBdx4IL
Copy link

The following creates the typical garbled filenames when there is a missing conversion between MultiByte and WideChars:

    if ((src = zip_source_win32w_create(zipFile.wstring().c_str(), 0, -1, &error)) == NULL) {
        ...
    }

    if ((za = zip_open_from_source(src, ZIP_CREATE, &error)) == NULL) {
        ...
    }

The same source works properly when trying to access Unicode files for archiving, though. It's just the zip file's name itself that's mishandled.

@jjYBdx4IL jjYBdx4IL added the bug libzip doesn't behave as expected. label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug libzip doesn't behave as expected. help wanted
Projects
None yet
Development

No branches or pull requests

2 participants