diff options
author | Piotr Jastrzebski <haaawk@google.com> | 2014-08-12 10:26:17 +0100 |
---|---|---|
committer | Piotr Jastrzebski <haaawk@google.com> | 2014-08-13 09:58:16 +0100 |
commit | 6a7f4bb79dde575d30af562af916b572b80ff9c3 (patch) | |
tree | 03c6b8f2ab908211ba2332e05cf9647d516236d3 /include/ziparchive | |
parent | 8750fa76090ee735677022f5e2d73419dd7faa93 (diff) | |
download | system_core-6a7f4bb79dde575d30af562af916b572b80ff9c3.zip system_core-6a7f4bb79dde575d30af562af916b572b80ff9c3.tar.gz system_core-6a7f4bb79dde575d30af562af916b572b80ff9c3.tar.bz2 |
Make sure that names of all entries have the same encoding.
Add new public method to allow checkisc if an archive has entry names encoded in
UTF-8. If not then they will be encoded in IBM PC character encoding.
Bug: 16162465
Change-Id: I4468d76accca8a9b0b31cae8d43399ffc22cad42
Diffstat (limited to 'include/ziparchive')
-rw-r--r-- | include/ziparchive/zip_archive.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ziparchive/zip_archive.h b/include/ziparchive/zip_archive.h index 27a9796..afd2b7e 100644 --- a/include/ziparchive/zip_archive.h +++ b/include/ziparchive/zip_archive.h @@ -158,6 +158,11 @@ int32_t Next(void* cookie, ZipEntry* data, ZipEntryName *name); void EndIteration(void* cookie); /* + * Whether entry names in an archive are encoded in UTF-8. + */ +bool HasUTF8Names(const ZipArchiveHandle handle); + +/* * Uncompress and write an entry to an open file identified by |fd|. * |entry->uncompressed_length| bytes will be written to the file at * its current offset, and the file will be truncated at the end of |