[Mono-list] A possible reason for getting newline problems

Serge serge@wildwestsoftware.com
Wed, 6 Mar 2002 21:15:57 +0200


> That's something different. Setting the CYGWIN environment variable to
> include `binmode' (which you must do) controls the behavior of the

But it seems, that CYGWIN=binmode doesn't override setup settings for
cygdrive mount mode.
So maybe that's the problem.

For example try this:
Unix mode selected in setup, mount reports binmode:
Now cvs co mcs
 Array.cs - Unix-style line-ends.
 Attribute.cs - DOS-style line-ends.
That's ok, it fetches files as they are.

Now change mode to DOS (so that mount reports textmode).
Now after check-out both files have DOS-style line-ends.
Regardless of CYGWIN variable (binmode or not).

So it looks like it's not a CVS internal conversion, but just due to fopen's
default mode (that depends on mount mode) or something like that.
Maybe CYGWIN var behavior depends upon Cygwin version?


Sergey