Skip to content

Commit

Permalink
upgrade unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
xurwxj committed Jun 2, 2021
1 parent e9698b5 commit 2732206
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ func unzip(tFile, targetDir, targetCharset string) error {
fHeader := file.FileHeader

tname := file.Name
validUTF8, requireUTF8 := detectUTF8(tname)
if fHeader.NonUTF8 && (!validUTF8 || !requireUTF8) {
// validUTF8, requireUTF8 := detectUTF8(tname)
// if fHeader.NonUTF8 && (!validUTF8 || !requireUTF8) {
if fHeader.NonUTF8 {
switch targetCharset {
case "932", "ja", "ja-jp", "ja_jp", "50220", "50221", "50222", "50932", "51932":
tname = DecodingJPString(tname)
Expand Down

0 comments on commit 2732206

Please sign in to comment.