I struggled with this, and here are the solutions I
came up with (my platform: W2k Pro, cygwin, ssh)
  
1. Using WinCvs: Make sure you have not checked the box

    [x] Checkout Text files with Unix LF (Oxa)

   which is located in the tab:
 
     Admin -> Preferences -> Globals

2. Using Xemacs, here's something that you can put in
   your startup to make sure that new files are loaded
   up as using DOS line-endings.  (When XEmacs loads
   other files, it should automatically determine what
   type of file [max/dos/unix] and use those line-endings
   when you edit):

   ;; Let new files be loaded up with Dos-EOL
   (set-default-buffer-file-coding-system 'undecided-dos)

3. Using cvs in cygwin...I'm not totally sure about this
   because I don't use cvs in cygwin that much (and the
   latest versions of vi/less tend to mask the line endings
   of text files)...but I think it may depend on if your
   drives are mounted in binmode or textmode.  You can
   tell my doing a 'mount' command.  For example, on my
   system, the drives are mounted:

     [0|14:53:56|dev] mount
     d:\cygwin\bin on /usr/bin type user (binmode)
     d:\cygwin\lib on /usr/lib type user (binmode)
     d:\cygwin on / type user (binmode)
     c: on /c type system (binmode)
     d: on /d type system (binmode)

   I think you want binmode, but I'm not sure.

- Gidado


> -----Original Message-----
> From: Daniel Rall [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 1:25 PM
> To: Jakarta Commons Developers List
> Subject: Re: [collections] Some source files contain bad line-endings
> (was Re: [patch] Remove redundant public modifiers from interface
> methods)
> 
> 
> "Waldhoff, Rodney" <[EMAIL PROTECTED]> writes:
> 
> >> I'm just wondering what I'm doing wrong from a line-ending 
> perspective.
> >> Any ideas would be greatly appreciated...
> >
> > I've seen the same symptoms using an emacs editor, 
> configured with bad line
> > endings (neither unix nor pc), e.g., something like \r\n\r or maybe
> > mac-style \r.
> 
> There may be a commit option which needs to be set in WinCVS.
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to