FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-10-2010, 10:02 AM
Giovanni Funchal
 
Default Bug in file command magic

Hi,

I've just noticed that the file command returns wrong mime for a file.
In fact, if a LaTeX file uses the command ibligraphystyle somewhere
in the beginning, file will return mime "text/vnd.graphviz" instead of
"text/x-tex". I took a look at /usr/share/file/magic (on Lenny), and
it has something like :

0 regex/100 [
]*graph[
]*.*{ graphviz graph text
!:mime text/vnd.graphviz

This regular expression matches iblioGRAPHystyle in the first
thousand characters or so. A good fix would be :

- 0 regex/100 [
]*graph[
]*.*{ graphviz graph text
+ 0 regex/100 (^|[
]+)graph[
]*.*{ graphviz graph text

Since in the dot file format[1], the keyword "graph" must be preceded
by a white space or be in the beginning of the file.

Anyone knows where I can report this?

-- Giovanni

[1] http://www.graphviz.org/doc/info/lang.html


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-10-2010, 01:04 PM
Stephen Powell
 
Default Bug in file command magic

On Wed, 10 Feb 2010 06:02:02 -0500 (EST), Giovanni Funchal wrote:
>
> Hi,
>
> I've just noticed that the file command returns wrong mime for a file.
> In fact, if a LaTeX file uses the command ibligraphystyle somewhere
> in the beginning, file will return mime "text/vnd.graphviz" instead of
> "text/x-tex". I took a look at /usr/share/file/magic (on Lenny), and
> it has something like :
>
> 0 regex/100 [
]*graph[
]*.*{ graphviz graph text
> !:mime text/vnd.graphviz
>
> This regular expression matches iblioGRAPHystyle in the first
> thousand characters or so. A good fix would be :
>
> - 0 regex/100 [
]*graph[
]*.*{ graphviz graph text
> + 0 regex/100 (^|[
]+)graph[
]*.*{ graphviz graph text
>
> Since in the dot file format[1], the keyword "graph" must be preceded
> by a white space or be in the beginning of the file.
>
> Anyone knows where I can report this?
>
> [1] http://www.graphviz.org/doc/info/lang.html

According to the packages page on the Debian web site, /usr/share/file/magic
belongs to package libmagic1. I would suggest filing a bug report against
package libmagic1.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-10-2010, 03:46 PM
Jon Dowland
 
Default Bug in file command magic

On Wed, Feb 10, 2010 at 01:30:11PM +0200, Γιώργος *άλλας wrote:
> I think this belongs to package 'file'...

Yup, source package file is the best place. See
<http://www.debian.org/Bugs/Reporting> if you need info on
how to report bugs in Debian.



--
Jon Dowland
 
Old 02-10-2010, 06:44 PM
Andrei Popescu
 
Default Bug in file command magic

On Wed,10.Feb.10, 12:02:02, Giovanni Funchal wrote:
> Hi,
>
> I've just noticed that the file command returns wrong mime for a file.
> In fact, if a LaTeX file uses the command ibligraphystyle somewhere
> in the beginning, file will return mime "text/vnd.graphviz" instead of
> "text/x-tex". I took a look at /usr/share/file/magic (on Lenny), and
> it has something like :

[snip]

> Anyone knows where I can report this?

You already have the answer, but here are two more ways:

$ dpkg -S /your/buggy/file

or even

$ reportbug /your/buggy/file

(reportbug uses dpkg -S AFAIK).

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 

Thread Tools




All times are GMT. The time now is 02:09 PM.

VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org