OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Mar 18, 2024 9:00 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] Software recommendation: 7-zip with CJK support
PostPosted: Thu May 13, 2021 3:10 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
Does anybody know about any 7-zip extractor capable of dealing with CJK character set for Linux? Preferably without adding extra locale. p7zip can theoretically do that but needs to be recompiled with extra configuration flags, which I don't want to deal with. Maybe there is some easier solution.


Last edited by pvc on Thu May 13, 2021 11:33 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Software recommendation: 7-zip decompressor with CJK sup
PostPosted: Thu May 13, 2021 7:03 am 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 1584
Nope. 7-zip SDK is Windows-only, it's port to other OS is mostly garbage (no wonder most of them are rewrites, and it took YEARS to compile a cli 7-zip under Linux). Also it's compression, lzma2 is badly implemented, not transmission-safe and inefficient (that page is about xz, however 7z uses exactly the same lzma2 encoding). If I were you, I'd choose another archive format instead of 7z in the first place.

If the archive is from a 3rd party and you cannot download the material in non 7z form, then give a try to command line 7zip under Linux, but it is known to be buggy (see sourceforge forums and tickets, there are more than 500 open and unresolved issues).

Not sure, but maybe XZ Utils can extract 7z files, worth a try.

Cheers,
bzt


Top
 Profile  
 
 Post subject: Re: Software recommendation: 7-zip decompressor with CJK sup
PostPosted: Thu May 13, 2021 11:05 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5069
The 7z format always uses UTF-16 for file names, so anything not based on the original 7-zip Windows code should at least handle characters in the BMP.

A quick search turns up py7zr. Does that one work for you?


Top
 Profile  
 
 Post subject: Re: Software recommendation: 7-zip decompressor with CJK sup
PostPosted: Thu May 13, 2021 11:31 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
@Octocontrabass
Thanks. py7zr works like a charm. p7zip that comes from Arch repos says `locale=C,Utf16=off` in its help message, so that was probably the problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group