[Mono-list] A possible reason for getting newline problems
06 Mar 2002 13:37:57 +0100
"Serge" <email@example.com> writes:
> > After that, I removed the file on my Windows box and checked it out
> > again from CVS - and it was in DOS mode again :-(
> This, I believe, is handled by Cygwin setup program - it asks for
> line-ending mode.
> The flag that controls the mode (text/binary) is stored in the registry,
> searh for "cygdrive flags".
> Re-running the setup and changing mode to Unix will fix CVS checkouts.
That's something different. Setting the CYGWIN environment variable to
include `binmode' (which you must do) controls the behavior of the
operating system / C library. It does not help if the application
(cvs) already does the conversion, so you need to tell both the
application and the operating system to open the file in binary mode.