ports/183257: sysutils/file: [Bug 292] Illegal byte sequence in windows magic file
Scot W. Hetzel
swhetzel at gmail.com
Thu Oct 24 05:40:00 UTC 2013
>Number: 183257
>Category: ports
>Synopsis: sysutils/file: [Bug 292] Illegal byte sequence in windows magic file
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 24 05:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Scot W. Hetzel
>Release: FreeBSD 10.0-ALPHA2 i386
>Organization:
>Environment:
System: FreeBSD fbsd10 10.0-ALPHA2 FreeBSD 10.0-ALPHA2 #0 r255731: Sat Sep 21 08:56:02 CDT 2013 root at fbsd10:/usr/obj/usr/src/sys/GENERIC i386
>Description:
When sysutils/file is installed and run as:
LC_ALL=en_US.UTF-8 /usr/local/bin/file /usr/ports/sysutils/file/Makefile
it reports the following error:
ERROR: line 163: regex error 17, (illegal byte sequence)
According to the Mantis Bug Tracker, this is bug 292:
http://bugs.gw.con/view.php?id=292
Which narrowed the cause down to the magic/Magdir/windows magic file.
>How-To-Repeat:
cd /usr/ports/sysutils/file
make install
sh
LC_ALL=en_US.UTF-8 /usr/local/bin/file Makefile
>Fix:
The bug narrowed the issue down to line 163 of the magic/Magdir/windows file.
I was able to isolate the offending part of the regex.
Could someone commit it to the port and submit it upstream if the patch is correct.
Thanks
--- patch-magic__Magdir__windows begins here ---
--- ./magic/Magdir/windows.orig 2013-10-24 00:22:27.274530203 -0500
+++ ./magic/Magdir/windows 2013-10-24 00:23:35.443586906 -0500
@@ -160,7 +160,7 @@
# Windows *.INF *.INI files updated by Joerg Jenderek at Apr 2013
# emtpy ,comment , section , unicode line
-0 regex/s \\`(\r\n|;|[[]|\xFF\xFE)
+0 regex/s \\`(\r\n|;|[[]|\\xFF\\xFE)
# left bracket in section line
>&0 search/8192 [
# http://en.wikipedia.org/wiki/Autorun.inf
--- patch-magic__Magdir__windows ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list