Coder Social home page Coder Social logo

7zip's Issues

Add an option to enable DEBUG build

I'm packaging 7-zip to a Linux distro. I'm not sure if I missed anything, but it seems that we can't create a DEBUG build unless hacking the makefile. I also see a few similar requests in Sourceforge.

CFLAGS_BASE = -O2 $(CFLAGS_BASE_LIST) $(CFLAGS_WARN_WALL) $(CFLAGS_WARN) \
-DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-fPIC

May I open a PR to add an env flag here? like:

CFLAGS_BASE = ... 
ifdef DEBUG_BUILD
CFLAGS_BASE += -g
endif

By default, this change won't make any difference.

[Feature Request] Change temp floder

Is your feature request related to a problem? Please describe.

Dragging and dropping archives from 7-Zip to the temporary folder used by Explorer cannot be changed, always using environment variable %temp%.

What you want

I would like to add an option to change this temp floder.

Describe alternatives you've considered

No response

Additional information

No response

Have you checked that no similar feature request(s) exist?

  • I have searched and didn't find any similar feature request.

Performance regression with gcc-13.2.0?

I've run a benchmark on Ubuntu 24.04 with a packaged version (GCC 13.2.0: SSE2) and a version from https://www.7-zip.org/download.html (GCC 9.4.0: SSE2). The former:

paul@cube:~$ taskset -c 3 7z b 3 -mmt1

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
 64-bit locale=en_US.UTF-8 Threads:4 OPEN_MAX:1024

 mt1
Compiler: 13.2.0 GCC 13.2.0: SSE2
Linux : 6.6.0-14-generic : #14-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 30 10:27:29 UTC 2023 : x86_64
PageSize:4KB THP:madvise hwcap:2 hwcap2:2
Intel(R) N100 (B06E0) 

1T CPU Freq (MHz):  3384  3369  3386  3383  3390  3388  3388

RAM size:   11690 MB,  # CPU hardware threads:   1 / 4 : 8
RAM usage:    437 MB,  # Benchmark threads:      1

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       4914   100   4799   4781  |      45671   100   3892   3899
23:       4314   100   4381   4396  |      45455   100   3934   3935
24:       4021   100   4324   4324  |      44750   100   3922   3929
25:       3827   100   4369   4370  |      43758   100   3896   3895
22:       4897   100   4761   4764  |      45703   100   3901   3902
23:       4311   100   4404   4393  |      45466   100   3934   3936
24:       4028   100   4335   4332  |      44812   100   3932   3934
25:       3826   100   4369   4369  |      43773   100   3896   3896
22:       4883   100   4742   4751  |      45638   100   3901   3897
23:       4299   100   4381   4381  |      45306   100   3925   3922
24:       4015   100   4313   4318  |      44730   100   3922   3927
25:       3815   100   4359   4356  |      43805   100   3896   3899
----------------------------------  | ------------------------------
Avr:      4263   100   4461   4461  |      44906   100   3913   3914
Tot:             100   4187   4188

decompresses much slower (3914 MIPS) than the latter (5983 MIPS):

paul@cube:~/7z2301-linux-x64$ taskset -c 3 ./7zz b 3 -mmt1

7-Zip (z) 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
 64-bit locale=en_US.UTF-8 Threads:4 OPEN_MAX:1024, ASM

 mt1
Compiler: 9.4.0 GCC 9.4.0: SSE2
Linux : 6.6.0-14-generic : #14-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 30 10:27:29 UTC 2023 : x86_64
PageSize:4KB THP:madvise hwcap:2 hwcap2:2
Intel(R) N100 (B06E0) 

1T CPU Freq (MHz):  3349  3369  3379  3372  3387  3389  3388

RAM size:   11690 MB,  # CPU hardware threads:   1 / 4 : 8
RAM usage:    437 MB,  # Benchmark threads:      1

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       4898   100   4780   4765  |      70254   100   6003   5998
23:       4313   100   4404   4395  |      69701   100   6039   6033
24:       4024   100   4324   4327  |      66763   100   5861   5861
25:       3825   100   4369   4367  |      66700   100   5964   5937
22:       4893   100   4761   4760  |      69758   100   5961   5956
23:       4319   100   4404   4401  |      69700   100   6018   6033
24:       4034   100   4356   4338  |      68719   100   6017   6033
25:       3822   100   4369   4365  |      66794   100   5940   5945
22:       4895   100   4761   4763  |      70236   100   5982   5997
23:       4320    99   4427   4402  |      69604   100   6018   6025
24:       4034   100   4345   4338  |      68771   100   6017   6037
25:       3823   100   4364   4365  |      66687   100   5940   5936
----------------------------------  | ------------------------------
Avr:      4267   100   4472   4465  |      68641   100   5980   5983
Tot:             100   5226   5224

wim support

Почему на чтение открывает все wim файлы, а на изменение\удаление содержимого далеко не все. (от вида сжатия не зависит)

Часто пишет "Some files have incorrect reference count" и изменить ничего не даёт.

Вам известны "правильные" параметры в командной строке dism, для того чтобы создать wim который 7zip сможет открыть для изменения? Или это от версии dism зависит?

Requesting 7za.exe release link

Hello,

I've recently built a project that relies on downloading 7za.exe on the fly to automate extracting an archive. 7zr.exe is not up to the task for this particular archive. As far as I know, 7za.exe is only officially available within the extra.7z package, which unfortunately requires 7-Zip to unpack. As a result, I've resorted to hosting 7za.exe alongside my own project-- but I'd prefer to link to an official release instead.

Is this a possibility?

Thanks!

[Feature Request] Teledisk image (.td0) extraction support

Hello. I have downloaded an old version of Windows 1.03 from Winworld for the HP 150 x86 based PC, and the disk images are all Teledisk image format (.td0). I do not have the ability to use Teledisk, as it is a DOS program, and I am running 64-bit Windows 7. Can you add Teledisk extraction support, as all the software I have for disk images, including 7-Zip cannot open them. Thanks in advance!

[Request] Context menu - unzip in different folder

The winrar (?) had option if are selected several archives, and with right mouse button has menu - unzip each in different folder, where name of the folder is the name of the archive.
This is very convenient.

[Feature Request] Add Check for Updates

Is your feature request related to a problem? Please describe.

7-Zip Doesn't have auto update since it says offline. However, using third party such as Glary Utilities should work by detecting latest version.

What you want

I would like 7-Zip to have support check updates, including automatic and manual.

Describe alternatives you've considered

One of the alternate does have other programs have check updates such as gBurner, AnyBurn, ImgBurn, etc.

Additional Information

Per following this: https://sourceforge.net/p/sevenzip/discussion/45797/thread/c2066626d9/

Have you checked that no similar feature request(s) exist?

  • I have searched and didn't find any similar feature request.

Were MD5 checksums removed intentionally?

Hi, I could swear 7-zip had option to create MD5 hash of a file through the CRC SHA, but now I can't seem to find a way to do it, only CRC or SHA. Am I misremembering? If not, would it be possible to bring this feature back?

[Feature Request] Add English (United Kingdom) language

7Zip-EnGBFlag

Is your feature request related to a problem? Please describe.

7-Zip does have English language for default. However, for some reasons, most of the words are using American text because English (United Kingdom) language is not present.

What you want

I would like to add English (United Kingdom) Language for 7-Zip. Because the flag is literally United Kingdom, and most words are different, such as Favoruites. as the American text is Favorites (in case on the menu bar).

Describe alternatives you've considered

Possibly, English (English) is the default language. The reason there are various region language for English regions such as United Kingdom.

Additional Information

Per following this: https://sourceforge.net/p/sevenzip/feature-requests/1600/

I also made English UK Flag with Logo, the logo is credited to the Nurudin.

Additional Context

Igor said he doesn't want add anymore languages, He asked about British English localization for Windows. To be honest, British English was introduced in Windows 8 for the main language since in 2012. that being said, the Language code is called en-GB.

I Initially make base for en.ttt file, then I save the text file for en-GB language. As soon I always update some strings, I always keep updated to make up to date in the future.

Comparing from ImgBurn, I initially made change several strings to matching from ImgBurn and some resembles from Windows 8. through 11. for example, "Computer" text would be "This PC", this will be resembled from Windows 8.1 through 11.

You can clearly see on the changes I made on the above, those are updated to keep my language file for British English.

In other words, some language flag are also appeared in various games such as FIFA 14 and FIFA 23, and other European games that including Language selection, these are flag named it: English (United Kingdom), or British English instead.

Here's what the language flag would looks like in FIFA 23:
FIFA23-EnglishUKFlag

If you see these, this means it's British English flag, so let me know if you interested this.

Have you checked that no similar feature request(s) exist?

  • I have searched and didn't find any similar feature request.

Fix 7-Zip installers

Please fix the 7-Zip installers so they clean up and don't add duplicates to Programs and Features:

image

cheers,
Scott

2 Panel View - Windows

Behaviour replication
Step 1
Enable 2 Panel View
Step 2
Close 7zip
Step 3
Open Zip File
Close 7zip
Open Different zip File

Resume:
Double click on zip file to open, the ZipFile is show on random panel (Left or right)
These makes quite confusing

Suggestion: when Open Zip File the same panel should be used ex: Left Panel

Issue with context menu icons on a 4K monitor

System information:
OS: Windows 10 22H2
7-Zip version: 24.05 x64

I have a 4K monitor and use 200% scaling and I have an issue with the context menu icons not scaling properly. I know that Windows has high dpi compatibility settings, and those work well with the 7-Zip GUI; however, they do not affect the context menu icons.

The 7-Zip icons are about half the size as the other context menu items as shown below:
Untitled

Instead of using the bmp in 7-zip.dll for the context menu icon, could the ico be used instead, since there is both a 16x16 and 32x32 version?

Suggestion: To further help lowering SHA-1 importance could you please move displayed order for available CRC SHA hash calculation from SHA-1, SHA-256 to SHA-256, SHA-1 ?

Given that since (quite enough) many years already (source: Wikipedia) SHA-1 hash algorithm is practically being discontinued more and more, even if still quite widely used, my suggestion for next v24.05 or successive v24.06 beta is also to start lowering its importance by also changing displayed order for available CRC SHA hash calculation in 7-Zip shell integration context menu from SHA-1, SHA-256 to SHA-256, SHA-1 (as well as in 7-Zip own internal File -> CRC menu).
So here's a quick visual example of how actual CRC SHA menu appears displayed in Explorer after 7-Zip shell context menu integration (just like also displayed by 7-Zip internal File -> CRC menu) and how it would become after implementing my suggestion :

          CRC32                     CRC32
          CRC64                     CRC64
CRC SHA - SHA-1           CRC SHA - SHA-256
          SHA-256                   SHA-1
          ...                       ...

P.S. I've also already noticed and appreciated ( 👍 ) the fact that when choosing '*' in CRC menus (after 7-Zip Explorer shell integration and even in its internal one) SHA-256 calculation is already made and listed before SHA-1 one.

Clang/LLVM 17 can't build on Linux due to too strict warning options

For 23.01, -Werror triggered a lot of compilation errors when using Clang/LLVM 17 to build Alone2 on Linux.

CFLAGS_WARN_WALL = -Werror -Wall -Wextra

I've confirmed that removing this specific option when using Clang can resolve the issue.

May I open a PR for this? The fix may be as follows.

ifneq ($(CC), xlc)
CFLAGS_WARN_WALL = -Wall -Wextra
ifndef USE_CLANG
CFLAGS_WARN_WALL += -Werror
endif
endif 

add format

is there by any change to be added .zst format ?

[Bug] Language text file uses Unix CR line ending

Describe the bug
If you try open notepad (such as Windows Notepad) running on Windows 2000 through Windows 7, the line ending is incorrect for Language text files.

To Reproduce

Steps to reproduce behavior:

  1. Open the directory following these: C:\Program Files\7-Zip
    1.1: If you are running 64-bit but with 32-bit installed, find here: C:\Program Files (x86)\7-zip
  2. Double click the Lang folder.
  3. Click the text files anything you want, such as fr.txt and de.txt
  4. See the line ending that is incorrect.

Expected behavior
Line Ending must set DOS/Windows that allowing CR and LF (according on MousePad xfce)

Screenshots
Here is the comparison Before and After.
7zip-FrenchLanguage-LineEndingCompare

The Before shows Unix Line Ending which there are lots of square symbol, meaning it is glitched if you run Windows Notepad. In Windows 10 v1809, it only works fine.

The after: This is the Line ending that I changed from Unix to DOS/Windows itself.

What version(s) of 7-Zip have this bug?
24.01 Beta x86 according below in environment and others.

Environment and others (please complete the following information)

  • 7-Zip version: 24.01 Beta x86
  • Operating System in Host OS: Windows 7 Ultimate 32-bit
  • Guest OS (in Virtual PC): Windows XP

Additional Context
Line Ending for translation might glitched if you save again when you running on Windows, resulting error message appears (well, sort of). However, the issue was found back in version 24.01 released. In that circumstance, 23.01 is okay, since the Line ending had DOS/Windows itself.

However, the solution is simple, you can use Notepad2 by following select: File -> Line Endings -> Windows (CR+LF).
For Notepad++, there is line ending option called EOL Conversion.

Have you checked that no similar bug report(s) exist?

  • I have searched and didn't find any similar bug report.

[Feature Request] saved passwords

some websites use the same password for their zip files and the option to save them in maybe some kind of list would be a good QOL, as an example the password for their files are "ABCD.EFG" when the extractor asks for the password it can pre fill ( like browser search fields) or show the option when you press "A" to make it faster for the user to complete it. while it can be a security issue if not careful i feel it can be done as long as the person needs to intentionally in the setting page with maybe a small warning about the possible scenario.

thanks for the great app as well

[Feature Request] Extended SFXSetup config

Hello can you implement any of the following abilities?

-Update files based on file size and/or file modified time.
-Configure extract mode via config.
-Configure target directory via config. (In my test implementation I fallback to tempDir if extractPath not specified)
-Allow one to issue ShellExecuteEx /w runas verb via config so we can get elevation.
-ExpandEnvironmentStrings for paths in the config.
-Unicode by default.

Thanks!

btw in ReadDataString:
if (posTotal > (1 << 20)) return (stringResult.IsEmpty()); should be...
if (posTotal > (1 << 22)) return (stringResult.IsEmpty()); to handle reading config up to 4MB stub

Fails to compile with AVX512 support

7zz executable (Alone2) and 7z.so library (Format7zF) fail to compile with AVX512 support enabled.
E.g. when setting -march=x86-64-v4 in CFLAGS.

../../../../C/Blake2s.c: In function ‘z7_Black2sp_Prepare’:
../../../../C/Blake2s.c:2552:11: error: implicit declaration of function ‘CPU_IsSupported_AVX512F_AVX512VL’; did you mean ‘CPU_IsSupported_VAES_AVX2’? [-Wimplicit-function-declaration]
 2552 |       if (CPU_IsSupported_AVX512F_AVX512VL())
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           CPU_IsSupported_VAES_AVX2
make: *** [../../7zip_gcc.mak:1164: _o/Blake2s.o] Error 1

Truns out this function declaration is commented out for some reason:

// BoolInt CPU_IsSupported_AVX512F_AVX512VL(void);

But still invoked in the code:

7zip/C/Blake2s.c

Line 2552 in fc66234

if (CPU_IsSupported_AVX512F_AVX512VL())

Uncommenting it makes the build successful.

Портируйте код для Эльбруса (e2k)

Пожалуйста, получите доступ к машине на архитектуре Эльбрус (e2k) и исправьте ошибки сборки, которые появились в версии 23.

Всё из-за того, что вы добавили использование векторных интринсиков для Интела. Разработчики Эльбруса сделали конвертацию Интловских интринсиков в свои. У них есть поддержка всего до AVX2, но всё что выше SSE4.1 (включая AVX2, AES, SHA , что почему-то включаются по умолчанию) вы использовать не должны, потому что 256-бит векторов у Эльбруса нет, а интринсики для AES и SHA медленно эмулируются, так как на них нет эквивалентных инструкций.

Я сделал некрасивый патч, которым заткнул проблемы.

7z t giving wrong information about integrity of archive when quitting scanning archive

How to reproduce:

  1. Create archive with 7z a archive-path.7z -mx=9 dir-to-archive
  2. Wait till it will be properly archived
  3. Try to verify integrity of archive with 7z t archieve.7z
  4. Accidentally type Ctrl-C in terminal terminating the process of verifying.
  5. Receive information about archive being corrupted and be sad.
  6. Mind that you terminated the process and try again with 7z t archive.7z till it properly ends saying everything is ok. Be a little be confused.

Reproduced with 7-Zip 24.07 (x64) on Windows 11

What could be changed so, error message would state something like
Integrity check was interrupted by signal, proper information is not available?

Should it be done in a first place, because it already writes Break signaled with the last line of message after typing ctrl-c ?

source tarball doesn't create a top-level directory

the convention for source tarballs is that they extract to a directory with the same name as the tarball, without the tar.whatever extension:

zlib-1.2.3.tar.gz -> zlib-1.2.3

so 7z2407-src.tar.xz should extract to 7z2407-src

in my distro are 1467 packages, and only 7zip and 3 others are misbehaving in this regard.

Slovak Language

Hi i See that only 29 lines is missing to translate. Where can I find localisation file/s to translate? Thanx.

Cannot get Path of files in zip with arabic letters in it using `7z l` command

So, i will like to get info about zip
13_07_2024__23_12_59.zip
but when i run the command 7z l 13_07_2024__23_12_59.zip i get this

7-Zip 24.07 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-06-19

Scanning the drive for archives:
1 file, 16779276 bytes (17 MiB)

Listing archive: 13_07_2024__23_12_59.zip

--
Path = 13_07_2024__23_12_59.zip
Type = zip
Physical Size = 16779276

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2024-07-13 23:13:02 D....            0            0  ______________________________CUSA02625_CUSA02625
2024-07-13 23:13:02 D....            0            0  ______________________________CUSA02625_CUSA02625\PS4
2024-07-13 23:13:02 D....            0            0  ______________________________CUSA02625_CUSA02625\PS4\SAVEDATA
2024-07-13 23:13:02 D....            0            0  ______________________________CUSA02625_CUSA02625\PS4\SAVEDATA\6e789933f239e402
2024-07-13 23:13:22 D....            0            0  ______________________________CUSA02625_CUSA02625\PS4\SAVEDATA\6e789933f239e402\CUSA02625
2024-07-13 23:13:24 .....     16777216     16777216  ______________________________CUSA02625_CUSA02625\PS4\SAVEDATA\6e789933f239e402\CUSA02625\savedata
2024-07-13 23:13:24 .....           96           96  ______________________________CUSA02625_CUSA02625\PS4\SAVEDATA\6e789933f239e402\CUSA02625\savedata.bin
------------------- ----- ------------ ------------  ------------------------
2024-07-13 23:13:24           16777312     16777312  2 files, 5 folders

notice how the arabic letters are replaced with underscores, this makes the paths useless, i need the paths in order to extract just one file from the zip, it would be better if it showed something like
image

as although its question marks, the actual character data is still there, and 7zip is able to extract the file using that command

[Feature Request] Please add a GUI for Linux too

As a KDE/Gnome user, a GUI is necessary to operate, including desktop services to access an archive from Dolphin or Nautilus/Files.
Please add those elements in order to improve the usability and accessibility of 7zip.

Certain video formats are being treated as an archive in the context menu

System information:
OS: Windows 10 22H2
7-Zip version: 24.04 beta x64

I am having as issue where 7-Zip's context menu shows the options to extract files for mkv and webm video files.

I have the following context menu items selected in the options menu:

  • Extract Here
  • Extract to Folder
  • Add to archive...
  • 7-Zip > CRC SHA >

When I right click on most video files, only the add to archive and CRC entries appear, which is what I would expect; however, when I right click on any mkv or webm files I get the following:

Untitled

It seems like 7-Zip is treating these formats as an archive. Would it be possible to prevent the extraction options from showing up in the context menu for all media files?

Suggestion: Add a graphical button to implement one-click decompression

Dear development members of the 7zip project team!

I have a suggestion for optimization on the tool panel of 7zip, to add a graphical element that implements one-click decompression (the function being to decompress to the current path). The purpose of this suggestion is to reduce the user's path selection operation and optimize the user experience.

eg.
2222222222

I hope it will be adopted, thank you very much.

Make Back and Forward button of mouse to work on 7zip

I used to be a winrar user, and that is the only feature that I miss every time I need to go trough lots of folders

image

Please make these buttons (back/forward) work in this awesome application, as I think the majority of mouses nowadays come with these buttons

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.