mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-05 21:23:57 +00:00
Incorrect encoding when filename had more than 100 characters #100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexandrejh on GitHub (Jul 4, 2016).
When the filename had more than 100 characters and diacritics the folder name is created with wrong encode and the filename is cutted (e.g. if the name is myword.docx in tar.gz file the name is myword.do)
@adamhathcock commented on GitHub (Jul 4, 2016):
Tar has a size limitation on names. I guess an exception should be thrown instead of truncating. Thoughts?
Any chance of a pull request fix?
@alexandrejh commented on GitHub (Jul 4, 2016):
At this moment i used a work around in my code (remove diacritics from the path) but this is not good because this name is typed by user.
In TarHeader has the code above that works differently when the filename has more than 100 characters.
@adamhathcock commented on GitHub (Jul 4, 2016):
Sounds like you have a good handle on the issue. I'm not a tar expert but it might be cause tar only expects to deal with ASCII characters? I don't really know.
Could you make a PR that could fix this for everyone?
@alexandrejh commented on GitHub (Jul 4, 2016):
yes, i can do the PR, but remove all folder name diacritics is interesting? if yes i can do.
@alexandrejh commented on GitHub (Jul 5, 2016):
when i try to open the project in my VS 2015 i got this error
@adamhathcock commented on GitHub (Jul 5, 2016):
You need the .NET Core Preview 2 tooling that uses xproj. I haven't quite updated to that yet but I will after I return from vacation.
@adamhathcock commented on GitHub (Jul 5, 2016):
Right now the code is RC2 but I need to make it RTM for .NET Core and .NET Standard
@adamhathcock commented on GitHub (Sep 27, 2016):
You can fix this now that everything is RTM.
http://dot.net