This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DOS textfile mode & files with "0a" line endings: CVS creates "0d0a"


I have a Cygwin installation (based on 1.3.2).  I run Cygwin-XEmacs.  My mounts
are text mode.  When I create a new text file and store it, I can use "od -h"
to show that the lines end with "0a", and not "0d0a".  This is fine.

I have a bunch of files (ending with "0a") that I decided to put into CVS, so
I'm running a "local" CVS server.  I "import"ed the files, then went to another
directory and did a "cvs checkout".  I then viewed several of the text files in
the project, and they all have "^M" characters at the eol.  I used "od -h" to
verify that these files now end with "0d0a" instead of "0a".

I reviewed the Cygwin manual and FAQ and the CVS documentation, and I didn't
notice this kind of issue being addressed.

I'm using the "cvs" built within Cygwin.

Here's my cygcheck output, if it's useful:
-----------------
% cygcheck -s

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Thu Oct 11 20:46:05 2001

WinNT Ver 5.0 build 2195 Service Pack 2

Path:	/cygdrive/c/XEmacs/bin/i686-pc-cygwin
	/usr/bin
	/usr/bin
	/cygdrive/c/jdk1.3.1/bin
	/usr/bin
	/cygdrive/c/WINNT/system32
	/cygdrive/c/WINNT
	/cygdrive/c/WINNT/System32/Wbem
	/home/dmkarr/bin
	/cygdrive/c/xemacs/bin/i686-pc-cygwin32
	/cygdrive/c/jakarta-ant-1.3/bin
	/cygdrive/c/jboss-2.4.1_Tomcat-3.2.3/jboss/bin
	/cygdrive/c/mysql-max/bin
	/usr/bin
	.
	/home/dmkarr/ntlisp/jde-2.1.8/lisp
	/usr/local/bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/home/dmkarr/java/sgs'
USER = `dmkarr'
MAKE_MODE = `unix'
HOME = `/home/dmkarr'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  NTFS   43966Mb  17% CP CS UN PA FC     
d:  cd           N/A    N/A                    

C:\cygwin\bin  /usr/bin  system  textmode
C:\cygwin\lib  /usr/lib  system  textmode
C:\cygwin  /        system  textmode
c:    /cygdrive/c  user    textmode,noumount

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll
   17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll
   14k 2000/10/23 C:\cygwin\bin\cygintl.dll
   81k 2001/04/28 C:\cygwin\bin\cygitcl30.dll
   35k 2001/04/28 C:\cygwin\bin\cygitk30.dll
   45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll
  119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
  163k 2001/05/06 C:\cygwin\bin\cygpng2.dll
  108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll
  390k 2001/04/28 C:\cygwin\bin\cygtcl80.dll
    5k 2001/04/28 C:\cygwin\bin\cygtclpip80.dll
   10k 2001/04/28 C:\cygwin\bin\cygtclreg80.dll
  245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll
  623k 2001/04/28 C:\cygwin\bin\cygtk80.dll
   41k 2001/05/28 C:\cygwin\bin\cygXpm-noX4.dll
   45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll
   49k 2001/02/03 C:\cygwin\bin\cygz.dll
  678k 2001/05/21 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        dll major: 1003
        dll minor: 2
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 39
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Sun May 20 23:28:17 EDT 2001
        shared id: cygwin1S3

Use -h to see help about each section
-----------------

-- 
===================================================================
David M. Karr          ; Best Consulting
dmkarr@earthlink.net   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]