Hide Forgot
Description of problem: Some manual pages are detected by file command as a Fortran program. This causes other utilities to malfunction, for example less will not correctly format the manual page but display the formatting commands instead. Version-Release number of selected component (if applicable): file-5.04-11.el6.x86_64 Steps to Reproduce: # cat /usr/share/man/en/man1/man.1.gz | gunzip | file - /dev/stdin: FORTRAN program # less /usr/share/man/en/man1/man.1.gz | head .\" .\" Generated automatically from man.1.in by the .\" configure script. .\" .\" Man page for man (and the former manpath) .\" .\" Copyright (c) 1990, 1991, John W. Eaton. .\" .\" You may distribute under the terms of the GNU General Public .\" License as specified in the README file that comes with the man 1.0 This is a regression against RHEL5 where the detection works as expected: # cat /usr/share/man/en/man1/man.1.gz | gunzip | file - /dev/stdin: troff or preprocessor input text
Could you please attach that man-page file? I'm not able to reproduce it with the piece returned by "head".
Created attachment 526216 [details] Example "FORTRAN" man page
Thanks, there is already upstream bug closed as wontfix: http://bugs.gw.com/view.php?id=133 I've created new one and we will see... http://bugs.gw.com/view.php?id=147 If upstream will be against, I will have to close it as WONTFIX, because there's no way how to distinguish between FORTRAN comment and line starting with "C " or "c ". File can't do any advanced parsing.
Since there's no input on this issue from upstream and previous bug was closed as WONTFIX, I will close this one too. I don't see any 100% how to fix this bug, but do not break detection of other things.