Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#985046: mc: cannot view zip file containing pdf

10 views
Skip to first unread message

Johannes Stezenbach

unread,
Mar 12, 2021, 4:00:03 AM3/12/21
to
Package: mc
Version: 3:4.8.26-1
Severity: normal

Dear Maintainer,

since the last mc update I cannot view zip files containing
pdf files anymore, this seems to be related to mc's use of
"file -z". I confirmed this happens when the ~/.config/mc/mc.ext
is removed and thus /etc/mc/mc.ext is used.

$ file E7024_P8H77-V.zip
E7024_P8H77-V.zip: Zip archive data, at least v2.0 to extract
$ file -z E7024_P8H77-V.zip
E7024_P8H77-V.zip: PDF document, version 1.6 (Zip archive data, at least v2.0 to extract)
$ unzip -l E7024_P8H77-V.zip
Archive: E7024_P8H77-V.zip
Length Date Time Name
--------- ---------- ----- ----
19049720 2012-04-09 14:02 E7024_P8H77-V.pdf
--------- -------
19049720 1 file


Best Regards,
Johannes


-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.8.18 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.utf-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mc depends on:
ii libc6 2.31-9
ii libext2fs2 1.46.2-1
ii libglib2.0-0 2.66.7-2
ii libgpm2 1.20.7-8
ii libslang2 2.3.2-5
ii libssh2-1 1.9.0-2
ii mc-data 3:4.8.26-1

Versions of packages mc recommends:
ii mime-support 3.66
ii perl 5.32.1-3
ii sensible-utils 0.0.14
ii unzip 6.0-26

Versions of packages mc suggests:
ii arj 3.10.22-24
ii bzip2 1.0.8-4
pn dbview <none>
pn djvulibre-bin <none>
pn epub-utils <none>
ii evince [pdf-viewer] 3.38.2-1
ii file 1:5.39-3
ii genisoimage 9:1.1.11-3.2
ii gv [pdf-viewer] 1:3.7.4-2+b1
ii imagemagick 8:6.9.11.60+dfsg-1
ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1
pn libaspell-dev <none>
ii lynx 2.9.0dev.6-2
ii mupdf [pdf-viewer] 1.17.0+ds1-1.3
pn odt2txt <none>
ii poppler-utils 20.09.0-3.1
pn python <none>
pn python-boto <none>
ii python-tz 2020.4-1
ii qpdfview [pdf-viewer] 0.4.18-4
ii texlive-binaries 2020.20200327.54578-6
ii unar 1.10.1-2+b6
ii w3m 0.5.3+git20210102-6
pn wimtools <none>
ii zip 3.0-12

-- no debconf information

Daniel Serpell

unread,
Mar 16, 2021, 6:20:03 PM3/16/21
to
Package: mc
Version: 3:4.8.26-1
Followup-For: Bug #985046

Hi,

The bad commit is this:
https://github.com/MidnightCommander/mc/commit/8857423e4ebb770b6f0ea3103abf5d35c85fcbe8

This also broke viewing ZIP files in which the first member is any image
(jpg, png, etc), as they are opened by imagemagic that can't handle ZIP
files, also if a ZIP file has multiple images, I don't want to see only
the first!

Error on pressing F3:
identify-im6.q16: no decode delegate for this image format `ZIP' @ error/constitute.c/ReadImage/575.

Thanks,


-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-4-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CRAP, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mc depends on:
ii libc6 2.31-9
ii libext2fs2 1.46.2-1
ii libglib2.0-0 2.66.7-2
ii libgpm2 1.20.7-8
ii libslang2 2.3.2-5
ii libssh2-1 1.9.0-2
ii mc-data 3:4.8.26-1

Versions of packages mc recommends:
ii mime-support 3.66
ii perl 5.32.1-3
ii sensible-utils 0.0.14
ii unzip 6.0-26

Versions of packages mc suggests:
pn arj <none>
ii bzip2 1.0.8-4
pn dbview <none>
pn djvulibre-bin <none>
pn epub-utils <none>
ii evince [pdf-viewer] 3.38.2-1
ii file 1:5.39-3
ii genisoimage 9:1.1.11-3.2
pn gv <none>
ii imagemagick 8:6.9.11.60+dfsg-1
ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1
pn libaspell-dev <none>
pn odt2txt <none>
ii poppler-utils 20.09.0-3.1
pn python <none>
pn python-boto <none>
pn python-tz <none>
ii texlive-binaries 2020.20200327.54578-7
ii unar 1.10.1-2+b6
ii w3m 0.5.3+git20210102-6
ii wimtools 1.13.3-1
0 new messages