-
-
Notifications
You must be signed in to change notification settings - Fork 333
Closed
Description
Summary
When function FileManager.unzipItem is called with the attached ZIP file without specify the pathEncoding, it will throw error. Root cause is that for some items in the ZIP file, the path are encoded by GB18030, and the existing implementation in Entry.path cannot create a Swift String with that encoding when centralDirectoryStructure.usesUTF8PathEncoding == false. The attached ZIP file can be extracted on macOS with the default Archive Utility. And we cannot ask our customers to fix there attachments.
Steps to Reproduce
Call FileManager.unzipItem with the attached sample ZIP file.
Expected Results
All items can be extracted as expected.
Actual Results
The function throws an error.
Regression & Version
N/A
Related Link
N/A
Metadata
Metadata
Assignees
Labels
No labels