Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the File-MimeInfo CPAN distribution.

Report information
The Basics
Id: 70142
Status: rejected
Priority: 0/
Queue: File-MimeInfo

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.15
Fixed in: (no value)



Subject: Failure to open /usr/share/mime/magic
Installed shared-mime-info: shared-mime-info.i386 0.19-3.el5 installed Error message: [root@host ~]# perl test_mime.pl test_mime.pl Magic file '/usr/share/mime/magic' doesn't seem to be a magic file at test_mime.pl line 24 mimetype: text/plain It will report every file text file (HTML, XML, CSS, Perl, ...) as text/plain and every binary file as 'application/octet-stream'. I've done an update of the MIME databases, but that doesn't work. # /usr/bin/update-mime-database /usr/share/mime/ *** * Updating MIME database in /usr/share/mime... Wrote 501 strings at 20 - 298c Wrote aliases at 298c - 2b88 Wrote parents at 2b88 - 3584 Wrote literal globs at 3584 - 35e0 Wrote suffix globs at 35e0 - 69f8 Wrote full globs at 69f8 - 6a1c Wrote magic at 6a1c - c37c Wrote namespace list at c37c - c38c *** I've attached the generated magic file
Subject: magic
Download magic
application/octet-stream 11.5k

Message body not shown because it is not plain text.

This happens mainly because in my test script I had a 'local $/;'. When I remove this line, the module works as expected.
Rejected because now obvious fix to be robust for $/ changes.