Skip to content
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

Merged
merged 2 commits into from Jan 29, 2017

Conversation

notspiff
Copy link
Contributor

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

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.
@hudokkow hudokkow added Type: Fix non-breaking change which fixes an issue v18 Leia labels Jan 22, 2017
@hudokkow
Copy link
Member

jenkins build this please

@MartijnKaijser
Copy link
Member

i can create/provide some broken .zip package if you are interested

@MartijnKaijser
Copy link
Member

jenkins build this please

@akva2
Copy link
Contributor

akva2 commented Jan 23, 2017

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.

@Paxxi
Copy link
Member

Paxxi commented Jan 23, 2017

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

@notspiff
Copy link
Contributor Author

notspiff commented Jan 23, 2017 via email

@Paxxi
Copy link
Member

Paxxi commented Jan 23, 2017

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.
@notspiff
Copy link
Contributor Author

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.

@MartijnKaijser
Copy link
Member

Jenkins build this please

@MartijnKaijser MartijnKaijser merged commit 3907cfb into xbmc:master Jan 29, 2017
@MartijnKaijser MartijnKaijser added this to the L 18.0-alpha1 milestone Jan 29, 2017
@taxigps
Copy link
Member

taxigps commented Apr 7, 2019

@notspiff Chinese filename in zip file display wrong with this pr. it works well before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants