I've spent hours debugging this - it is definitely mingw/mingw-w64 specific. I 
don't really understand what's going on, but it appears that this is the same 
issue as http://lists.gnu.org/archive/html/bug-gnulib/2009-01/msg00370.html . I 
see that you committed 
http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00230.html a while ago, 
but there are still uses of dirfd which always returns -1 for mingw.

Figuring out how to make this work is far beyond my area of expertise (if this 
involved crazy C++ templates I'd be right at home).

I know mingw is a second-class citizen, but if you or someone else who 
understands what gnulib is doing here could investigate, that would be 
wonderful for everyone on Windows who uses grep.

Thanks,
STL

-----Original Message-----
From: Paul Eggert [mailto:egg...@cs.ucla.edu] 
Sent: Tuesday, January 14, 2014 9:01 AM
To: Stephan T. Lavavej; 16...@debbugs.gnu.org
Subject: Re: bug#16444: grep -r fails with "Bad file descriptor" for mingw-w64

Stephan T. Lavavej wrote:
> I don't believe
> this is specific to mingw-w64.

Quite possibly it's specific to mingw, though.

Mingw is low priority for us,
but if someone like you with the motivation
and experience can come up with a patch
(ideally a patch to mingw), that might be nice.




Reply via email to