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

UnicodeDecodeError on files in archive if filename contains non unicode characters (ex: é à etc.) #51

Closed
vchalmel opened this issue Nov 23, 2021 · 0 comments

Comments

@vchalmel
Copy link

utf-8 encoding is hardcoded in this function of the source code making reading / extracting files with non utf-8 names impossible

def _archive_entry_pathname(entry):
    filepath = libarchive.calls.archive_entry.c_archive_entry_pathname(entry)
    if filepath is None:
        raise ValueError("Could not get entry file-path.")
    return filepath.decode('utf-8')
@vchalmel vchalmel changed the title UnicodeDecodeError on files in archive in filename contains non unicode characters (ex: é à etc.) UnicodeDecodeError on files in archive if filename contains non unicode characters (ex: é à etc.) Nov 23, 2021
@vchalmel vchalmel closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant