From 28c856020059a37d86699be610afb2d75f5c124f Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 14 Dec 2010 18:19:08 +0100 Subject: [PATCH] comment --- src/index/mimetype.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index/mimetype.cpp b/src/index/mimetype.cpp index ef29a87e..0fc732b9 100644 --- a/src/index/mimetype.cpp +++ b/src/index/mimetype.cpp @@ -86,7 +86,8 @@ static string mimetypefromdata(const string &fn, bool usfc) return string(); list::iterator it = res.begin(); mime = *++it; - // Remove possible punctuation at the end + // Remove possible punctuation at the end. Note that this mangles + // text/x-c++ if there is no semi-colon... handled in mimeconf :( if (mime.length() > 0 && !isalpha(mime[mime.length() - 1])) mime.erase(mime.length() -1); // File -i will sometimes return strange stuff (ie: "very small file")