summaryrefslogtreecommitdiff
path: root/include/ziparchive/zip_archive.h
diff options
context:
space:
mode:
authorPiotr Jastrzebski <haaawk@google.com>2014-08-12 10:26:17 +0100
committerPiotr Jastrzebski <haaawk@google.com>2014-08-13 09:58:16 +0100
commit6a7f4bb79dde575d30af562af916b572b80ff9c3 (patch)
tree03c6b8f2ab908211ba2332e05cf9647d516236d3 /include/ziparchive/zip_archive.h
parent8750fa76090ee735677022f5e2d73419dd7faa93 (diff)
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/zip_archive.h')
-rw-r--r--include/ziparchive/zip_archive.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ziparchive/zip_archive.h b/include/ziparchive/zip_archive.h
index 27a97967d..afd2b7e54 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