fix: gbk filename encoding in ZIP extraction (#1260)

This commit is contained in:
Copilot authored and GitHub committed 2026-01-29 22:37:12 +08:00
1 parent 93088b22f1
commit 4c90b38247
4 files changed
+129 -10

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ func extractZipMultiPart(firstPartPath string, destDir string, password string,
// First pass: count files for progress
totalFiles := 0
zip := archives.Zip{}
zip := newZipFormat()
err = zip.Extract(context.Background(), io.NewSectionReader(multiReader, 0, totalSize), func(ctx context.Context, fileInfo archives.FileInfo) error {
if !fileInfo.IsDir() {
totalFiles++