Ticket #2117 (closed defect: fixed)
View file with extension ended as a digit messed up output
Reported by: | AlexJ | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.8.26 |
Component: | mc-core | Version: | 4.7.0.2 |
Keywords: | Cc: | ||
Blocked By: | #4128 | Blocking: | |
Branch state: | no branch | Votes for changeset: |
Description
MC - 4.7.0.2
compiled as i686
without subshell
Target OS: FreeBSD (tried on 6.x, 7.x, 8.0)
Run in SSH terminal session via PuTTy.
===========================================
Defect:
Attempt to preview a file that has extension for example xxx.1
messed up output.
Viewer attempt to show that files as a man page and as result
formatting of content is incorrect
Screenshots attached.
Attachments
Change History
Changed 15 years ago by AlexJ
- Attachment open-conf-file.png added
Changed 15 years ago by ossi
- Attachment 0001-call-file-with-z-switch-to-enable-getting-type-of-co.patch added
patch to fix detection of some file types
comment:2 Changed 15 years ago by ossi
this topic has come up on the ml several years ago already. as a result i have the attached patch applied since, like, forever.
there is one concern about the portability of the -z option of file. if it is not guaranteed (i.e., we still care for systems which don't have it), one would have to add a configure check and mc would have to pipe the data through gzip itself for systems where it is necessary.
the patch probably breaks some of the more recently added patterns, as i did only basic conflict resolution over the years. consider it a proof of concept only.
comment:3 Changed 13 years ago by andrew_b
- Branch state set to no branch
- Milestone changed from 4.7 to Future Releases
MC error on attempt to view file with extesion .1