BUG: viewing compressed files

Pavel Roskin proski at gnu.org
Wed Jul 2 16:49:38 UTC 2003


On Mon, 30 Jun 2003, Dmitry Semyonov wrote:

> > In 4.6.0a if I enter the "Raw mode" then press F10, then F3 again
> > filename changes into "archive-2002.gz", but it changes back into
> > "archive-2002.gz#ugz" if I press F8 to enter "Parse mode" again...
> >
> > Does anybody have similar problems?
>
> I have exactly the same problem, at least with gz files.

I'm terribly sorry.  I think what I was testing wasn't the latest version.
I can reproduce the problem now.  The "type" entries in mc.ext were not
matched correctly.  The problem was introduced by a recent patch from
Andrew Samoilov.  I'm sorry that I didn't test that patch sufficiently.

Patch:

===========================================
--- ChangeLog
+++ ChangeLog
@@ -1 +1,6 @@
+2003-07-02  Pavel Roskin  <proski at gnu.org>
+
+	* ext.c (regex_check_type): Set content_shift to skip the
+	filename.
+
 2003-06-27  David Sterba  <dave at jikos.cz>
--- ext.c
+++ ext.c
@@ -419,6 +419,7 @@ regex_check_type (char *filename, int fi
 	    if (islocal) {
 		if (!strncmp (content_string, filename, file_len)) {
 		    /* Skip "filename: " */
+		    content_shift = file_len;
 		    if (content_string[content_shift] == ':') {
 			content_shift++;
 			/* Solaris' file prints tab(s) after ':' */
===========================================

-- 
Regards,
Pavel Roskin



More information about the mc-devel mailing list