file 4.23 gives regexec errors
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
Running file 4.23 on an EXE file gives this error:
ERROR: line 9099: regexec error 17, (match failed)
If I comment out that line of the magic file and recompile it, I get this error:
ERROR: line 977: regexec error 17, (match failed)
If I comment that line, EXE files work, but I get other errors for generic binary files (files that don't normally match anything):
ERROR: line 9100: regexec error 17, (match failed)
ERROR: line 10649: regexec error 17, (match failed)
I've verified this on two separate Windows XP SP2 systems.
I have the latest version of the dependencies.
Logged In: YES
user_id=217802
Originator: NO
Yes, the port of 4.23 is faulty. It has been withdrawn. Please use 4.21 in the meantime.
Logged In: YES
user_id=217802
Originator: NO
Yes, the port of 4.23 is faulty. It has been withdrawn. Please use 4.21 in the meantime.
Logged In: YES
user_id=217802
Originator: NO
This is due to an inconsistent use of the regelar-expression library and the header: file includes regex.h from the standard regex library, but uses the pcre library which has sometimes different return values; see http://www.mail-archive.com/rpm-devel@rpm5.org/msg02376.html
A new release of file (4.24) which uses the regex library and does not have the present bug, is available from http://gnuwin32.sourceforge.net