On Wed, 3 May 2000, Olaf Bachmann wrote:
> Please apply the following patch to makeinfo/files.c -- otherwise the
> (last) 'read' call returns -1 under cygwin v 1.1 and makeinfo refuses
> to process any input file.
>
> Olaf
> *** files.c Tue May 02 23:35:14 2000
> --- files.c~ Tue Mar 23 22:42:44 1999
> ***************
> *** 168,179 ****
> #ifdef VMS
> while ((n = read (file, result + count, file_size)) > 0)
> #else /* !VMS */
> ! #if !defined(WIN32) && !defined(__CYGWIN__)
> while ((n = read (file, result + count, file_size)) > 0)
> #else /* WIN32 */
> /* Does WIN32 really need reading 1 character at a time?? */
> while ((n = read (file, result + count, 1)) > 0)
> ! #endif /* !defined(WIN32) && !defined(__CYGWIN__) */
I doubt that reading the file one character at a time is a good idea.
I believe somebody submitted a better change that works for Cygwin. So
this problem should be solved in the next release of Texinfo.
(Also, your diffs are backwards. You need to say "diff -c old new".)