Skip Menu |

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

Report information
The Basics
Id: 28072
Status: open
Priority: 0/
Queue: File-MMagic-XS

People
Owner: Nobody in particular
Requestors: Anonymous (no email address)
Cc:
AdminCc:

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



Subject: breaks when $/ is modified
Date: Tue, 10 Jul 2007 04:01:39 +0200 (CEST)
To: bug-File-MMagic-XS [...] rt.cpan.org
From: Anonymous <cripto [...] ecn.org>
when setting $/, all results are returned as 'text/plain'. here's a contrived example: local $/ = "\0"; use File::MMagic::XS; my $magic = File::MMagic::XS->new; for my $file (@ARGV) { my $mime = $magic->get_mime($file); print "$file: $mime\n"; }
From: DMAKI [...] cpan.org
I can't immediately reproduce this. What's in $file? On 月曜日 7月 09 22:02:38 2007, cripto@ecn.org wrote: Show quoted text
> when setting $/, all results are returned as 'text/plain'. > here's a contrived example: > > local $/ = "\0"; > > use File::MMagic::XS; > my $magic = File::MMagic::XS->new; > > for my $file (@ARGV) { > my $mime = $magic->get_mime($file); > print "$file: $mime\n"; > } >