libzip plugin
Closed, ResolvedPublic

Description

We need to check how good is the support for non-unicode characters in filenames.

Test application

This will list a zip archive using libzip:

// test.cpp
#include <iostream>
#include "zip.hpp"

int main(int argc, char *argv[])
{
    try {
        libzip::Archive archive(argv[1]);

        for (auto file : archive) {
            std::cout << file.name << std::endl;
        }
    } catch (const std::exception &ex) {
        std::cerr << ex.what() << std::endl;
    }

    return 0;
}

Requirements

  1. libzip installed
  2. zip.hpp file from https://bitbucket.org/markand/libzip/src

Compile

$ g++ test.cpp -I/usr/lib/libzip/include -lzip -o test

Usage

$ ./test foo.zip
rthomsen updated the task description. (Show Details)Jul 19 2016, 7:28 PM
rthomsen claimed this task.Aug 6 2016, 3:27 PM
rthomsen moved this task from Backlog to In progress on the Ark board.
rthomsen renamed this task from Investigate libzip usage to libzip plugin.Dec 17 2016, 3:31 PM

A working plugin is now in the libzip branch. Requires unreleased libzip from mercurial repo.

elvisangelaccio moved this task from In progress to Done on the Ark board.May 12 2017, 8:57 AM
rthomsen closed this task as Resolved.Sep 9 2018, 10:43 AM