By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 661

Summary: Mimetype detection is incorrect, some types are wrongly guessed
Product: TDE Reporter: Laurent Dard <f.couperin>
Component: tdelibsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: bugwatch, kb9vqf, michele.calgaro
Priority: P5    
Version: 3.5.13 [Trinity]   
Hardware: All   
OS: All   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on: 656    
Bug Blocks:    

Description Laurent Dard 2011-11-20 15:36:20 CST
Konqueror wrongly recognizes some files as of type:
* diff (as stated here: http://bugs.kde.org/116272
* Java code (the gtkrc file type which is 'UTF-8 Unicode C++ program text')
* C++ header
* Objective-C code (/etc/apt/apt.conf)
* C source file (~/.gnome2/totem_config)

And it doesn't recognize other types
* email files with extension .eml are recognized as plain text and or not
  associated with mail programs.
* debian/rules files (debian source packages) are not always recognized as make
  files.

* Empty files without extension should be opened in text editors.
* Empty files with known extensions should be opened like other files
  (db.sqlite, if empty, can't be opened in kexi from konqueror)
Comment 1 Laurent Dard 2011-11-21 06:35:58 CST
Files wrongly recognized as html files:

Conf file:
[General Options]
Headers=<head><title><body>

Script file:
#!/bin/cat
[General Options]
Headers=<head><title><body>
Comment 2 Laurent Dard 2011-11-21 06:41:09 CST
Files wrongly recognized as desktop files because they begin like desktop files:
kpdfrc...
Comment 3 Darrell 2012-06-17 13:01:30 CDT
How is this bug report different from 656? Should we mark one or the other as a duplicate?
Comment 4 Timothy Pearson 2014-10-01 20:49:32 CDT
This bug has the same root cause as Bug 656.  Once that bug is resolved this one will likely be resolved as well.
Comment 5 Timothy Pearson 2014-10-01 20:53:29 CDT
Can you please verify that the fix in Bug 656 has repaired this bug as well?

Thanks!

Tim
Comment 6 Michele Calgaro 2014-10-03 02:17:54 CDT
I did a local test on my computer.

> * diff, java, C/C++
OK


> email files with extension .eml are recognized as plain text 
Still the same

> debian/rules files (debian source packages) 
Recognized as plain text. OK for me.

> * Empty files without extension should be opened in text editors.
Disagree. Could be a binary file

> * Empty files with known extensions should be opened like other files
Looks ok here.


IMO we can close this bug.
Comment 7 Timothy Pearson 2014-10-04 18:13:29 CDT
Closing as the default behaviour is now consistent with the file(1) command and we no longer have the ability to override these even if we wanted to.