Bug 594624 - file cannot recognize C++ header files
file cannot recognize C++ header files
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: file (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Jan Kaluža
Milos Malik
: Regression
Depends On:
  Show dependency treegraph
Reported: 2010-05-21 04:02 EDT by Milos Malik
Modified: 2010-11-10 15:23 EST (History)
1 user (show)

See Also:
Fixed In Version: file-5.04-5.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-11-10 15:23:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix for regressions (1.56 KB, patch)
2010-06-11 06:56 EDT, Jan Kaluža
no flags Details | Diff

  None (edit)
Description Milos Malik 2010-05-21 04:02:23 EDT
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):

How reproducible:

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
Actual results:

Expected results:
Comment 4 Jan Kaluža 2010-06-11 06:56:43 EDT
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".
Comment 7 Jan Kaluža 2010-06-11 07:44:28 EDT
Commited to CVS, fixed in version file-5.04-5.el6.

Comment 9 releng-rhel@redhat.com 2010-11-10 15:23:15 EST
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.

Note You need to log in before you can comment on or make changes to this bug.