sam compiles out of the box on Cygwin, but hangs when opening files. I traced the problem to the test on WEOF following the assignment of fgetwc to a wchar_t. The following patch fixes the problem, and believe the original code is actually wrong on all systems, not only on Cygwin.
sam compiles out of the box on Cygwin, but hangs when opening files. I traced the problem to the test on WEOF following the assignment of fgetwc to a wchar_t. The following patch fixes the problem, and believe the original code is actually wrong on all systems, not only on Cygwin.