Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimetype always reports text/plain when reading from stdin #27

Open
ghost opened this issue Jan 19, 2017 · 0 comments
Open

mimetype always reports text/plain when reading from stdin #27

ghost opened this issue Jan 19, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 19, 2017

It seems that without rinning ::rehash() first,

$File::MimeInfo::Magiv::max_buffer is not defined and that results in readling 0 Bytes from stdin in the following line:

read(STDIN, $data, $File::MimeInfo::Magic::max_buffer);

The patch is tracked in the Debian GIt repository at

https://anonscm.debian.org/cgit/pkg-perl/packages/libfile-mimeinfo-perl.git/plain/debian/patches/fix_read_from_stdin.patch

Thanks for considering.
Simon Kainz,
Debian Perl Group

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants