New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for utf-8 formatted zip files #11527
Conversation
added in zip specification v6.3.0. note: no handling of extra field UTF-8/MAC et al as the specifications only says this will be flagged in the extra data field without giving details.
jenkins build this please |
i can create/provide some broken .zip package if you are interested |
jenkins build this please |
if by broken you mean 'files made on a mac that will show you what value sits in the extra field', then yes please. put some funky chars in there to make sure it doesn't write cp467. |
I love the timing of this, got a bug report the other day about this causing addon installation failures, haven't received any sample yet though |
I kinda doubt that was a coincidence see ref forum thread
|
Ahh yes, that's what I get for not following the links |
this is what is supported by the spec. makes files created by windows tools work. NOTE: this may break other, out-of-spec files but i suspect windows-created files are more common than files with broken encodings.
after a bit more inspection and reading; the windows created files now work. small cost: files from < 2007 might break. i know several tools used to violate the spec. a fair cost i think. |
Jenkins build this please |
@notspiff Chinese filename in zip file display wrong with this pr. it works well before. |
added in zip specification v6.3.0.
note: no handling of extra field UTF-8/MAC et al as the specifications only says this will be flagged
in the extra data field without giving details. if somebody wants this, i need samples.
i noticed this looking into http://forum.kodi.tv/showthread.php?tid=304577
https://pkware.cachefly.net/webdocs/APPNOTE/APPNOTE-6.3.0.TXT