mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
garbled when making tar with non-usascii filename. #324
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 @itn3000 on GitHub (Sep 10, 2018).
When I made the tar with non-usascii filename(in my case, it's Japanese),
non-usascii character was garbled.
here is my testcase code(xunit)
@KevinErath commented on GitHub (Sep 25, 2018):
I have the same issue with German Umlauts like
ö.I tracked the issue down to the class
TarHeader. Changing how theWrite()-Method handles the filename seems to fix the issue. Here is a quick sample i hacked together:It would be awesome if this would be fixed soon.
@adamhathcock commented on GitHub (Sep 25, 2018):
The Tar implementation is kind of mess, imo. I just don't have time nor the mental energy to redo it all by myself because of personal reasons.
If you could make a real PR for your fix, I'd take a look. Thanks!