Bug 116272 - Files get wrong file type
Summary: Files get wrong file type
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 3.4.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 129434 143100 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-13 22:40 UTC by Michael Stather
Modified: 2008-07-16 11:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the INSTALL file (445 bytes, text/plain)
2005-11-13 23:04 UTC, Michael Stather
Details
the README file (5.17 KB, application/octet-stream)
2005-11-16 00:32 UTC, Michael Stather
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stather 2005-11-13 22:40:15 UTC
Version:           3.4.2 (using KDE 3.4.2 Level "b" , SUSE 10.0)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

I downloaded the latest cameleon2 snapshot from: http://home.gna.org/cameleon/
Whan I unzipped it there was a file "INSTALL" which gets classified by konqueror as "diff-file" e.g. output of diff. This is just wrong, there is no extention and "fiel INSTALL" returns "ASCII text".
Comment 1 Thiago Macieira 2005-11-13 22:59:12 UTC
Can you attach it here? It probably starts with 'diff'.
Comment 2 Michael Stather 2005-11-13 23:04:54 UTC
Created attachment 13424 [details]
the INSTALL file
Comment 3 Thiago Macieira 2005-11-13 23:19:48 UTC
It's the *** that makes the detector mistake this INSTALL for a diff file.
Comment 4 Michael Stather 2005-11-16 00:31:48 UTC
I attached another file (README from the Quake3 version by Icculus) which gets classified as "c source file"
Comment 5 Michael Stather 2005-11-16 00:32:09 UTC
Created attachment 13481 [details]
the README file
Comment 6 Thiago Macieira 2005-11-16 02:01:09 UTC
Right, but I don't see a problem here.
Comment 7 Michael Stather 2005-11-16 09:26:21 UTC
Do you mean this is not a bug or that you don´t know why the type is misdetected here?
Comment 8 Stefan Geuns 2007-01-06 11:51:02 UTC
I get the same behaviour as the reporter, the INSTALL file gets reported as a diff and the README as c source code. (kde 3.5.5) file reports them both as "ASCII English text".
Comment 9 Philip Rodrigues 2007-01-06 12:32:00 UTC
*** Bug 129434 has been marked as a duplicate of this bug. ***
Comment 10 Philip Rodrigues 2007-01-06 12:34:13 UTC
Presumably this bug is in kdelibs somewhere, but I don't know what component...
Comment 11 Philip Rodrigues 2007-03-18 17:16:30 UTC
*** Bug 143100 has been marked as a duplicate of this bug. ***
Comment 12 Shriramana Sharma 2007-04-14 17:24:00 UTC
Another problem case:

Files with /bin/bash and +x mode are detected as scripts but not files with /bin/sh even with +x mode.
Comment 13 Michael Leupold 2008-05-18 12:49:39 UTC
I can still reproduce this in 3.5.9, but dolphin/trunk r809039 recognizes both of those files as text/plain.

The problem mentioned in c#12 isn't reproducible in either of the two versions I have.
Comment 14 Michael Leupold 2008-07-16 11:49:12 UTC
Closing this (see c#13).