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
I use libarchive and libgit2 create a git tools, This tool like
git archive, it can archive repository and support archive submodules. supportzip7z,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
libgit2encoding 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_utf8not 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