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.
--
Laurent Dard