Comments (24)
It was implemented in 1.1.6 @ffffwh. Inspired in The Unarchiver way, so will be very (maybe too much) familiar. You can test the feature with the example file found in the comment #12 (comment).
from keka.
from The Unarchiver
maybe show a window to select encoding?
from keka.
Another file that gets broken, Russian content shared by Колобок via mail: IIS.zip
from keka.
https://github.com/kjerk/sjisunzip
from keka.
no offence, Entropy do it well.
from keka.
thanks for the tip, will look at it
from keka.
@tkisme can you share a file to test?
from keka.
Maybe use p7zip-natspec or unzip-iconv for encoding autodetection?
https://aur.archlinux.org/packages/p7zip-natspec/
https://aur.archlinux.org/packages/unzip-iconv
from keka.
Just deleted one of you comments because it contained a file with adult images.
For the battle-net issue, here is the right issue that already contains a test file: #2
For the zip encoding, here an all ages test file, found here.
Just note that the bundled macOS compression utility also fails to extract it with the correct encoding.
from keka.
Just for test I've opened Unicode test.zip file, that you can find inside the test file posted before and Entropy did not extracted the files with the Chinese encoding, omitted them. Also the adult file you've posted before got unusable with Entropy, no images nor text file when extracted.
from keka.
Here another test file. This one is encoded in Greek DOS (737 codepage). This one was found here.
from keka.
Some useful info here: https://sourceforge.net/p/p7zip/discussion/383044/thread/3d213124
No quick fix though.
from keka.
maybe add iconv is enough?Can't wait to test.
from keka.
Official fix could take some time, but as I have pasted above, there is already third-party patches to add encoding autodetection support to unzip and p7zip :-)
Anyway, the default 'Archive Utility.app' seems to handle different encodings of zip files well, so you can use the bultin app for zip files.
from keka.
I think keka is the replacement of the default 'Archive Utility.app'.Use different application to handle different archives is just annoying.
So I think this is the necessary function.
from keka.
I can't get the point. Keka is behaving similar to built-in archive utility (double click and decompress), I did not see anything annoying.
Anyway, I tried to build latest p7zip with natspec patch and replaced Keka.app/Contents/Resources/keka7z, still no luck. The patch needs to be fixed for p7zip 16.02.
from keka.
@maz-1 , what natspec library you've used to compile p7zip? Can you share those files?
from keka.
Here is the natspec patch for p7zip 15.14.1
https://aur.archlinux.org/cgit/aur.git/tree/natspec.patch?h=p7zip-natspec
line 31 doesnt apply on p7zip 16.02, need a fix.
Here is the natspec library
https://sourceforge.net/projects/natspec/
@tkisme
Whatever. Why not stop arguring and start finding a solution to the problem?
from keka.
@maz-1 I've already downloaded both the patch and the library files, and fixed the patch. But I'm unable to link p7zip to the natspec library. How you did it?
In case you need it, here the patch: natspec_p7zip1602.patch.zip
from keka.
I made a homebrew formula to build natspec:
https://gist.github.com/maz-1/2c797fa2ccf5aa815017676bbb884a73
Download natspec.rb and run "brew install natspec.rb" should install the library.
And then patch p7zip with this(Modified a little to link to natspec):
https://gist.github.com/maz-1/f8e0bce8516e11337a758314c07ca423
But the encoding detection is still borken (15.14.1 has the same problem):
/Users/ling/Downloads/p7zip_16.02/bin/7z x /Users/ling/Downloads/test/Unicode\ test.zip
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Scanning the drive for archives:
1 file, 8458 bytes (9 KiB)
Extracting archive: /Users/ling/Downloads/test/Unicode test.zip
Broken encoding: '(null)' (to) or 'CP936' (from) or UCS2. May be you forget setlocale in main or gconv-modules is missed?
: Invalid argument
…
Broken encoding: '(null)' (to) or 'CP936' (from) or UCS2. May be you forget setlocale in main or gconv-modules is missed?
: Invalid argument
--
Path = /Users/ling/Downloads/test/Unicode test.zip
Type = zip
Physical Size = 8458
0%Broken encoding: '(null)' (to) or 'CP936' (from) or UCS2. May be you forget setlocale in main or gconv-modules is missed?
: Invalid argument
…
Broken encoding: '(null)' (to) or 'CP936' (from) or UCS2. May be you forget setlocale in main or gconv-modules is missed?
: No such file or directory
Everything is Ok
Folders: 7
Files: 30
Size: 132
Compressed: 8458
from keka.
IIS.zip was probably created by the built-in Windows archiver, I now checked, unpacked and re-packed the files, then unpacked, the encoding went bad.
WinRar on Windows at the same time works with such an archive correctly.
from keka.
Should check https://github.com/ethereon/p7zip-hybrid encoding changes
from keka.
This one should be fixed in 1.1.6!!!
from keka.
I am doing a research whether I could replace 'The Unarchiver' with this great App.
The only concern seems to be zip file name encoding. IMHO, auto encoding detection does not work 100%, so manual selection should be provided as a last resort.
With no offence, is it implemented?
from keka.
Related Issues (20)
- Keka asks for file access permission even when given "Full Disk Access" HOT 4
- [BUG] Keka does not clean up .kextraction when password dialog cancelled via regular close button HOT 6
- Downloader differs from previously opened versions HOT 3
- [BUG] Trying to open .zip file; "Failed to write to file" error. HOT 1
- Labels
- Security warning: xz-utils had a supply chain attack, please check if/how your app is affected HOT 1
- [BUG] HOT 1
- Add a new setting that always prompts the user for a password when compressing HOT 2
- Ability to skip verification HOT 3
- [BUG] Stuck if 50+ files are uncompressed HOT 7
- 7Z compression password issue [BUG] HOT 1
- [REQ] Import passwords from other app
- [BUG] Error code 2 using "7zz" - Fatal error HOT 8
- [BUG]Garbled characters in Japanese environment HOT 1
- Just open window when double-clicking on archive HOT 1
- [REQ] Bzip3 extraction support
- [BUG] No context menu in finder HOT 3
- xyz.app is damaged and can not be opened HOT 3
- [REQ] WACZ format support (zip alias) HOT 4
- [BUG] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keka.