Filenames are disturbed while trying to list or decompress archive
A free file archiver for extremely high compression
Brought to you by:
ipavlov
File and folder names are disturbed while trying to list archive contents or decompress it.
~/test_folder$ 7zz l ./Desktop.zip
7-Zip (z) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
64-bit locale=ru_RU.UTF-8 Threads:4
Scanning the drive for archives:
1 file, 330 bytes (1 KiB)
Listing archive: ./Desktop.zip
--
Path = ./Desktop.zip
Type = zip
Physical Size = 330
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2016-09-28 17:41:00 D.... 0 0
2016-09-28 17:40:41 ....A 4 4 ⥪⮢ 㬥.txt
------------------- ----- ------------ ------------ ------------------------
2016-09-28 17:41:00 4 4 1 files, 1 folders
Fixed some minor errors:
1) Avoid possible problems with table size calculation
2) Assume CP437 if charset detection fails
Last edit: unxed 2024-05-22
Asked several friends to test on several systems including Arch.
Last edit: unxed 2024-05-21
Removed code branch that was actually unused. All ANSI archives that I have either also have UnicodeName field or have OEM codepage in Central header what is used by 7-zip and ANSI only in Local header.
Added -mcp option support
How to use this `-mcp'? Tried that, but got error:
7zz -mcp=866 l ./zip.zip
7zz -mcp=1251 l ./zip.zip
etc
Last edit: unxed 2024-05-28
Bring back fix for
https://sourceforge.net/p/sevenzip/bugs/1060/
https://github.com/ip7z/7zip/pull/36