Skip to content

How to set archive filename Encoding is UTF-8. #983

@fcharlie

Description

@fcharlie

I use libarchive and libgit2 create a git tools, This tool like git archive, it can archive repository and support archive submodules. support zip 7z, tar, tar.bz2,tar.gz, tar.xz. it's cross platform.

Although everything looks good, the 7z and zip do not properly save the file name UTF-8, and it is well known that the libgit2 encoding is all UTF-8. In order to cross the platform, I also chose all encoding is UTF-8.

zip and 7z archive_entry_set_pathname_utf8 not work. (7z error file, zip format not work)

How can i solve this problem? (archive_entry_set_pathname_w can work under Linux ?)

git archive create zip support UTF-8 path

https://github.com/git/git/blob/master/archive-zip.c#L310

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions