--- "Thomas E. Dickey" <[EMAIL PROTECTED]> wrote:
> On Wed, 7 Jun 2000, Lars J. Aas wrote:
>
> > We had some problems with getting our Coin project compiled on Cygwin,
> > which we traced back to some "^M"-characters that weren't removed from
> > directory- and file-names when the dependeny tracking files were about
> > to be created at the end of the config.status run.
> >
> > The following patch made the configure script work, but one should
> > probably find out how the ^M characters were introduced and fix it on
> > that side...
>
Hmm... The effects of such a patch are welcome.
> one place to look is whether someone mounted the disk that's used for
> the build with a binary option (if it's mounted in binary mode, Cygwin
> puts ^M's on the ends of lines of "text" files).
>
This isn't quite correct. The mounted binary mode defaults the open of all
files as M$ concoction of "Binary Mode" which treats files just a UNIX would.
This means that \n terminates the line and \r becomes data, anything written
would only output \n line endings. If the mounts are in set to default to M$
concoction of "Text Mode" then \r\n or \n is the line ending. When read \r is
removed from the end of the line and the count reduced by one. On a write a
\r\n is written to the file as the line ending. Also, in "Text Mode" ^Z will
end a file.
Now, with the 1.1 release of Cygwin, the setup program changed the default
mount from text mode to binary mode. So if you had text mode mounts before and
installed the new version of Cygwin you were bit by the \r bug. This has led
to utilities being modified to handle the extranious \r when read in binary
mode. So, as I've said this is a welcome patch.
> On Wed, 7 Jun 2000, Lars J. Aas wrote:
>
> Mounting? There's more to cygwin than I though... We've just been
> building from C:/source to C:/build on NT...
Lars, you need to join the Cygwin mailing list and look at the documentation
both of which you can find at http://sourceware.cygnus.com/cygwin/. I can't
believe your developing with Cygwin without understanding it.
=====
---
Earnie Boyd: <mailto:[EMAIL PROTECTED]>
__Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
__Minimalist GNU for Windows__
Mingw32 List: <http://www.egroups.com/group/mingw32/>
Mingw Home: <http://www.mingw.org/>
__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com