[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [Bug 143573] New: Incorrect MIME type detection for UTF-8 text files
From:       Mathieu Bonnet <mathieu.bonnet () riverside-idealism ! org>
Date:       2007-03-28 20:36:14
Message-ID: 20070328223613.143573.mathieu.bonnet () riverside-idealism ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=143573         
           Summary: Incorrect MIME type detection for UTF-8 text files with
                    very long lines
           Product: konqueror
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konq-bugs kde org
        ReportedBy: mathieu.bonnet riverside-idealism org


Version:            (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
OS:                Linux

UTF-8 text files labelled as containing "very long lines" (more than 300 bytes, in \
KDE -`file`, however, counts any Unicode character as one character, but KDE do not \
inform the user that the file contains "very long lines", so it does not really \
matter), in KDE (in Konqueror or KMail, for example), are typed as "Unknown". It \
means problems with file associations, no preview, possible problems with \
antivirus/antispam filters (for emails -these files are sent with the \
"application/octet-stream" MIME type (without a charset, by the way, though it does \
not matter much, as the files cannot be previewed from the email client)), and \
general confusion which results from these problems.

There is no problem with ASCII files, even if they contain "very long lines" (they \
are properly typed as "Plain Text Document").

UTF-8 text files, without "very long lines", are properly typed too.


If you want to test, simply create a file, with a single line, containing less than \
300 bytes, and some UTF-8 non-ASCII characters (like "é"), and another file, with a \
line containing more than 300 bytes (and some UTF-8 non-ASCII characters). Then, just \
check the type in Konqueror or KMail.


KDE should properly detect the MIME type of UTF-8 text files, containing "very long \
lines" (that is, "text/plain"). _______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic