Re: [PATCH] strchrnul: work around cygwin bug

2011-04-16 Thread Ralf Wildenhues
Hi Bruno, * Bruno Haible wrote on Sat, Apr 16, 2011 at 12:10:41PM CEST: > Maybe we should advertise this more? That gnulib is not only for programmers > but also contains a test suite for part of POSIX. For example, we could > mention > this in the documentation, on the web pages, and upload on f

Re: [PATCH] strchrnul: work around cygwin bug

2011-04-16 Thread Bruno Haible
Hi Eric, > A misplaced * means that cygwin 1.7.9 dereferences NULL rather > than returning the location of the trailing NUL byte. This bug would have been avoided if the Cygwin people had taken the unit test from gnulib before releasing Cygwin 1.7.9. You contributed this test yourself, three year

[PATCH] strchrnul: work around cygwin bug

2011-04-15 Thread Eric Blake
A misplaced * means that cygwin 1.7.9 dereferences NULL rather than returning the location of the trailing NUL byte. * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug. * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it. * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness. * modu