Menu

#413 file 4.23 gives regexec errors

File
closed
GnuWin
Binaries (396)
5
2012-07-26
2008-02-20
bob carson
No

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.

Discussion

  • GnuWin

    GnuWin - 2008-02-22

    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.

     
  • GnuWin

    GnuWin - 2008-02-22

    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.

     
  • GnuWin

    GnuWin - 2008-06-14

    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