[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-bugs
Subject: [haiku-bugs] Re: [Haiku] #8653: SVG files mistakenly marked as html file or text file
From: "phoudoin" <trac () haiku-os ! org>
Date: 2012-06-26 15:30:56
Message-ID: 057.80c0865dacda881d435d3c51fa6a1009 () haiku-os ! org
[Download RAW message or body]
#8653: SVG files mistakenly marked as html file or text file
-------------------------+-------------------------------------------------
Reporter: Giova84 | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: | Version: R1/Development
Preferences/FileTypes | Keywords: svg file marked as html and text
Resolution: | file
Blocked By: | Blocking:
Has a Patch: 0 | Platform: x86
-------------------------+-------------------------------------------------
Comment (by phoudoin):
And calendar.svg ends as text/plain maybe, indeed, the file extension is
not working yet.
Anyway, let's add this string attribute to your mime_beos/image/svg+xml:
attribute name:
META:SNIFF_RULE
type:
String
value:
0.60 [0:512] ( -i "<SVG" | "<!DOCTYPE SVG")
That will translate in append these lines to
src/data/mime_beos/image/svg+xml:
{{{
+ resource(4, "META:SNIFF_RULE") #'CSTR' array {
+ "0.60 [0:512]( -i \"<SVG\" | \"<!DOCTYPE SVG\")"
+ };
}}}
-- =
Ticket URL: <http://dev.haiku-os.org/ticket/8653#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic