#971664 zip fails to delete file from archive

Package:
zip
Source:
zip
Description:
Archiver for .zip files
Submitter:
unxed
Date:
2025-04-22 23:09:02 UTC
Severity:
normal
#971664#5
Date:
2020-10-04 13:51:24 UTC
From:
To:
unzip fails to delete file from archive. Sample attached.

$ unzip -l new.zip
Archive: new.zip
   Length Date Time Name
--------- ---------- ----- ----
         0 2020-07-16 23:30 тест.txt
--------- -------
         0 1 file

$ zip -d new.zip тест.txt
         zip warning: name not matched: тест.txt

zip error: Nothing to do! (new.zip)

#971664#10
Date:
2021-01-10 16:29:04 UTC
From:
To:
reassign 971664 zip
found 971664 3.0-11
thanks

It's really "zip" who can't.

I can reproduce such outcome with the new.zip file you provided.

However, the zipfile was not created by Debian zip and it seems to be
buggy. Using Debian zip, it works:

$ touch тест.txt
$ zip a тест.txt
  adding: тест.txt (stored 0%)
$ zip a.zip -d тест.txt
  deleting: тест.txt
  zip warning: zip file empty


Not sure about what to do here. I'll try to contact upstream authors
to see why this happens.

Thanks.