Bug#791756: Running licensecheck on tarball or image results in crash

Sandro Mani manisandro at gmail.com
Wed Jul 8 08:09:48 UTC 2015


Package: devscripts
Version: 2.15.5


 From https://bugzilla.redhat.com/show_bug.cgi?id=1240914:

Description of problem:
In fedora-review package, script /usr/bin/licensecheck is used - it's part of devscripts-minimal package. Running licensecheck on binary file (such as tarball, picture, etc.) results in crash with:

Unknown encoding 'binary' at /usr/bin/licensecheck line 338.

Problem is that licensecheck uses "file -bi" to determine file encoding and uses this value to decode. Running file -bi on image file returns:

image/jpeg; charset=binary

but Perl function decode() doesn't know "binary" encoding.

Version-Release number of selected component (if applicable):
2.15.5-5

Steps to Reproduce:
1. Download any image.
2. Run licensecheck image.jpeg

Actual results:
It shows: Unknown encoding 'binary' at /usr/bin/licensecheck line 338.

Expected results:
It should either print "*No copyright* UNKNOWN" or info that this script doesn't work on binary files.



More information about the devscripts-devel mailing list