The current app-shells/mc package as provided by Gentoo, does not provide the ability to view the contents of files compressed with either .lzma or .tbz2 extensions. I know that this is possible using the vfs, mc simply needs to be patched to do so. Thanks to a patch provided by Lasse "Larzhu" Collin, my Slackware/Slamd64 system is able to do this. He can be reached on freenode/#tukaani for assistance if needed. Shingoshi Reproducible: Always Steps to Reproduce: 1. Open mc 2. Select any file having the above mentioned extension. 3. press return, or F3. 4. Either of these will yield an incomprehensible output. Actual Results: Incomprehensible output. Expected Results: It needs to be possible to view these files directly, as can be done with .gz and .bz2 extensions. I am attempting to get Larzhu write a script to create the patch for lzma for any version of mc. You'll likely be on your own to do the same for .tbz2 files. This is essential to me, especially since I build .tbz2 binaries of all my packages, and use .lzma for all of my manpages and bug reports. Thank you! Shingoshi
Yes, I'm aware syntaxes need more work and I will be working on them..
I just realized that mc doesn't need any special code to provide a view of lzma file. All that's needed, is to do the following: lzma=lzcat Shingoshi
Created attachment 151953 [details, diff] LZMA patch from Larzhu. Needs some work..
(In reply to comment #3) > Created an attachment (id=151953) [edit] > LZMA patch from Larzhu. > > Needs some work.. > (In reply to comment #3) > Created an attachment (id=151953) [edit] > LZMA patch from Larzhu. > > Needs some work.. > (In reply to comment #3) > Created an attachment (id=151953) [edit] > LZMA patch from Larzhu. > > Needs some work.. > Does "needing some work", mean it doesn't? Shignoshi
Created attachment 163563 [details, diff] Version of patch that applies to mc-4.6.2-pre1 The patch for mc-4.6.1 failed to apply on the file edit/edit.c due to whitespace changes in mc-4.6.2-pre1. I have changed that section of the patch and rebased it to mc-4.6.2-pre1. I also changed mc.ext.in slightly to allow *.tbgz2 files to be opened and viewed.
*** Bug 237195 has been marked as a duplicate of this bug. ***
Try 4.7.0_pre1. If there's still issues, please reopen and open a bug at: http://www.midnight-commander.org So it will be included in _pre2 or final 4.7.0.
mc-4.7.0-pre1 doesn't handle .tbz2 files, but I added a ticket with a patch: http://www.midnight-commander.org/ticket/1452
Reopening to handle .tbz2 support.
+ 03 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> mc-4.7.0_pre1.ebuild, + +files/mc-4.7.0_pre1-tbz2_filetype.patch: + .tbz2 filetype support wrt #219412 by Ian Abbott