[Maniphest] [Created] T2583: Investigate libzip usage
elvisangelaccio (Elvis Angelaccio)
noreply at phabricator.kde.org
Sun May 22 15:11:08 UTC 2016
elvisangelaccio created this task.
TASK 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 "zippy.hpp"
int main(int argc, char *argv[])
{
try {
zippy::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. zippy.hpp file from https://bitbucket.org/markand/libzip/src
Compile
-------
$ g++ test.cpp -lzip -o test
Usage
-----
$ ./test foo.zip
TASK DETAIL
https://phabricator.kde.org/T2583
WORKBOARD
https://phabricator.kde.org/project/board/46/
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: elvisangelaccio
Cc: kde-utils-devel, elvisangelaccio, tctara
More information about the Kde-utils-devel
mailing list