Red Hat Bugzilla – Bug 594624
file cannot recognize C++ header files
Last modified: 2010-11-10 15:23:15 EST
Description of problem:
Some C++ header files are not correctly recognized by file. I believe it's a
regression because file-5.03-12.el6 recognizes them correctly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
# rpm -ql libstdc++-devel | xargs file | grep HTML | tr -s ' '
/usr/include/c++/4.4.4/bits/basic_string.h: HTML document text
/usr/include/c++/4.4.4/bits/stl_map.h: HTML document text
/usr/include/c++/4.4.4/bits/stl_multimap.h: HTML document text
/usr/include/c++/4.4.4/bits/stl_multiset.h: HTML document text
/usr/include/c++/4.4.4/bits/stl_queue.h: HTML document text
/usr/include/c++/4.4.4/bits/stl_set.h: HTML document text
/usr/include/c++/4.4.4/bits/stl_stack.h: HTML document text
/usr/include/c++/4.4.4/tr1_impl/array: HTML document text
Created attachment 423238 [details]
Fix for regressions
Attached patch fixes regressions in file-5.0.4 which are causing described
problem. It basically removes excessive HTML/SGML "magic patterns".
Commited to CVS, fixed in version file-5.04-5.el6.
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.