Interested in libraries for C supporting wchar_t in the way to a file or folder.
+ Ability to add a folder to the ZIP archive (and Russian letters in the path to the folder, the type of the string is wchar_t )
Are there any in open source and where to download?
It is for C (gcc) not C ++

  • zip is so ancient and lamp-like that there is no specification in the archive format itself, in which encoding to store file names ... therefore, each time you open an archive from an unknown source, you will have to guess the encoding of the file names ... so a unified interface based on wchar_t meaningless ... - Fat-Zer pm
  • Take for example this and interrupt the interface on wchar_t , for example. Then do not forget to share the works with the others :) - NewView

1 answer 1

There are many libraries. For example:

It is a library and library archives in various formats such as tar and cpio. libarchive also supports reading and writing archives compressed using various compression filters such as gzip and bzip2. The library is inherently stream-oriented; readers serially iterate through the archive, writers

Supported archive formats:

  • tar (read and write, including GNU extensions)
  • pax (read and write, including GNU and star extensions)
  • cpio (read and write, including odc and newc variants)
  • iso9660 (read and write, including Joliet and Rockridge extensions, with some limitations)
  • zip (read only, with some restrictions, uses zlib)
  • mtree (read and write)
  • shar (write only)
  • ar (read and write, including BSD and GNU / SysV variants)
  • will accept an empty file
  • raw (read only)
  • xar (read only)
  • rar (read only, with some limitations)
  • 7zip (read and write, with some limitations)

Supported filters:

  • gzip (read and write, uses zlib)
  • bzip2 (read and write, uses bzlib)
  • compress (read and write, uses internal implementation)
  • uudecode (read only)
  • separate command line compression programs with auto signature recognition
  • xz and lzma (read and write using liblzma)

This package provides the libarchive shared library.

Or:

It is an archived in a single zip file. Applications can bundle files. It is a strategy that is actually used by the zip / unzip tools.