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

Martin Baulig martin@gnome.org
06 Mar 2002 13:46:50 +0100


Duncan Mak <duncan@ximian.com> writes:

> On Tue, 2002-03-05 at 18:32, Martin Baulig wrote:
> > So you need to use the -kb flag on every checkout and update.
> > 
> > It's best to put something like this into your ~/.cvsrc:
> > 
> > ====
> > cvs -z3
> > update -d -P -kb
> > checkout -kb
> > diff -u
> > ====
> > 
> > Of course you also need to use an editor which can handle Unix line
> > endings - but the best editor is useless if the file is already
> > converted on checkout ...
> > 
> 
> Is this only applicable to people hacking on windows? All my edits are
> done with emacs on linux, should I add this to my .cvsrc too?

You can, but you don't need to. Unix can natively handle DOS files,
but Windows can not natively handle Unix files, so cvs does not
conversion on Unix.

Both -kkv (the default) and -kk works fine with DOS files, they're
checked out in DOS mode.

-- 
Martin Baulig
martin@gnome.org