Skip to content

Conversation

@duanyao
Copy link
Contributor

@duanyao duanyao commented Jul 23, 2015

If some files/dirs to be installed contains non-ASCII chars, nuget will %-encode them in nupkg file, which may result in very long path and causes PathTooLongException while extracting to disk.

For example, one Chinese char is encoded as 3 bytes in UTF-8, and each byte is encoded as 3 chars in %-encoding, so one Chinese char is expanded to 9 chars in %-encoding, which causes PathTooLongException too easily (the limit is only 260 chars).

This patch decode/encode %-encoded entry names during creation of installation package to prevent this issuse.

@anaisbetts
Copy link
Contributor

Sorry for the huge delay, this is great!

@anaisbetts anaisbetts merged commit e910ab9 into Squirrel:master Aug 5, 2015
anaisbetts added a commit that referenced this pull request Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants