Patch attached, for kdelibs. Must be reviewed: not yet tested!
I compiled and installed kdelibs with the patch applied. That's a success: all text files are well identified in konqueror!
There's a remaining bug here:
~$ file .{kde,trinity}/share/config/gtkrc* .kde/share/config/gtkrc: UTF-8 Unicode C++ program text .kde/share/config/gtkrc-2.0: UTF-8 Unicode C++ program text .kde/share/config/gtkrc-2.0Voe7Xb.new: UTF-8 Unicode C++ program text .trinity/share/config/gtkrc: UTF-8 Unicode C++ program text .trinity/share/config/gtkrc-2.0: UTF-8 Unicode C++ program text
but konqueror identifies them as Java source files.
I created Bug Report 656 (http://bugs.pearsoncomputing.net/show_bug.cgi?id=656). Laurent, as you wrote and tested the patch you should submit/attach the patch to the bug report to receive credit. :)
Everybody who participated in this discussion, please add additional comments as necessary to describe your own observations with these mimetype quirks. :)
Darrell