From kfm-devel Sat Jan 23 11:51:30 1999 From: Michael Reiher Date: Sat, 23 Jan 1999 11:51:30 +0000 To: kfm-devel Subject: Mimetype recognition X-MARC-Message: https://marc.info/?l=kfm-devel&m=91902935106153 Hi, There is a problem with the Mimetype recognition. If a text file has no appropriate ending and contains 8bit characters, e.g. german umlauts, is isn't recognized as a text file anymore. Last night I looked into the kmimemagic sources and I found that the problem is that it uses the isascii() function. The manpage says: "checks whether c is a 7-bit unsigned char valuethat fits into the ASCII character set." And that's the problem. I tried isprint() || isspace() but it obviously covers also only 7bit. Does anybody have an idea how we could solve that? Michael -- Michael Reiher Student at Dresden University of Technology Department of Computer Science email: michael.reiher@gmx.de