[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Mimetype recognition
From: Michael Reiher <michael.reiher () gmx ! de>
Date: 1999-01-23 11:51:30
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic