mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
[PR #696] [MERGED] Ignores UnicodePathExtra if forced encoding is specified #1170
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?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/696
Author: @stakira
Created: 9/15/2022
Status: ✅ Merged
Merged: 9/15/2022
Merged by: @adamhathcock
Base:
master← Head:master📝 Commits (1)
418c125Ignores UnicodePathExtra if forced encoding is specified📊 Changes
4 files changed (+34 additions, -2 deletions)
View changed files
📝
src/SharpCompress/Common/Zip/Headers/DirectoryEntryHeader.cs(+1 -1)📝
src/SharpCompress/Common/Zip/Headers/LocalEntryHeader.cs(+1 -1)📝
tests/SharpCompress.Test/Zip/ZipArchiveTests.cs(+32 -0)➕
tests/TestArchives/Archives/Zip.UnicodePathExtra.zip(+0 -0)📄 Description
UnicodePathExtraalways overriding specified encoding makes this impossible for some files.Forcedencoding doesn't seem to be used anywhere, other than shadowingDefault. That basically makes the two fields equivalent. Shouldn't it overrideUnicodePathExtra? Anyway, I think this is the intended behavior, instead of the current one.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.