Bug 526054

Summary: "file" reports c++ source files as "Lisp/Scheme program text"
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: fileAssignee: Daniel Novotny <dnovotny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: dnovotny
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.03-3.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-30 01:33:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File exposing this bug none

Description Ralf Corsepius 2009-09-28 14:46:57 UTC
Description of problem:
"file" reports some c++ source files as 
Lisp/Scheme program text

Version-Release number of selected component (if applicable):
file-5.03-2.fc11.x86_64
and
file-5.03-2.fc11.i586

How reproducible:
Always, on certain files.

So far, I haven't found a pattern which are affected, but I am observing this bug on many files.

Steps to Reproduce:
1. file <*>.cpp
  
Actual results:
# file SbClip.cpp 
SbClip.cpp: Lisp/Scheme program text

Expected results:
Correct results, "ASCII English text", "ASCI C program text" or similar


Additional info:
This breaks applying "file" to check source files' encodings to conditionally convert them from ISO* to utf-8, e.g. when building rpms.

This affects building rpms as part of Fedora and is causing mis-built packages.

Comment 1 Ralf Corsepius 2009-09-28 15:05:16 UTC
Created attachment 362907 [details]
File exposing this bug

Comment 2 Daniel Novotny 2009-09-29 10:59:56 UTC
this was already fixed in rawhide (see bug 510429)
I can push the fix also to F11

Comment 3 Fedora Update System 2009-09-29 11:22:46 UTC
file-5.03-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/file-5.03-3.fc11

Comment 4 Fedora Update System 2009-09-30 01:33:32 UTC
file-5.03-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.