On Wed, 2004-01-21 at 11:03, District Webmaster wrote: > Why, when I view a .sxw file as text, do I see the mime type identified > as "application/vnd.sun.xml.writer" -- if that's not what it is?
Because the first file stored in the zip archive is a simple text file named mimetype containing that text. Since it's only 20 bytes, it's just stored rather than compressed. I think lines in magic.mime like this would work: 38 string application/vnd.sun.xml.calc application/vnd.sun.xml.calc 38 string application/vnd.sun.xml.draw application/vnd.sun.xml.draw 38 string application/vnd.sun.xml.impress application/vnd.sun.xml.impress 38 string application/vnd.sun.xml.writer application/vnd.sun.xml.writer I can't guarantee that's endian safe or portable, but it works for me. Corey ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
