[C++-sig] Re: Re: Re: CVS version on VC++ 7.0
aashish at iastate.edu
Tue Feb 3 22:42:06 CET 2004
Thansk Mike. But unix2dos couldn't do it and the script didn't run .. Are you so sure that
the problem is occuring
because of that reason ??
> Different OSes has different text files lines separation conventions.
> Unix uses single character '\n' (0xA) as line end symbol,
> DOS/Windows uses pair "\r\n" (0xD , 0xA) for that.
> Microsoft _requeres_ that project files (.sln, .vcproj for 7.x, .dsw, .dsp
> for 6.0)
> has DOS line ending.
> Unix text editors often convert files on save to unix convention and you
> could get such file from cvs. Also you can check out file from CVS as text
> file and (client permitting) explicitly set line ending to DOS dtyle. Also
> you can use simple tools like unix2dos.exe or even python2.3 script to do
> that (untested):
> import sys
> _, in, out = sys.argv
> except ValueError:
> print "Usage: python %s input_text_file output_file_dos_eol_style" %
> out=file(out, "w")
> for line in file(in, "rU").xreadlines():
> print >>out, line
> Aashish Chaudhary wrote:
> > Hi,
> > I didn't get that quite well. Could you please explain it.
> > ~regards,
> > Aashish
> >> aashish wrote:
> >>> file". It was asking me whether it should be converted for VC7.0.
> >>> When you do that it says the file is corrupted "unable to load the
> >> Make sure you have windoze file ending, ie "\r\n" before convertion.
> >> HTH,
> >> Mike
> >> _______________________________________________
> >> C++-sig mailing list
> >> C++-sig at python.org
> >> http://mail.python.org/mailman/listinfo/c++-sig
> > __________________________________________________________________________
> > Aashish Chaudhary
> > Research Assistant
> > Iowa State University E-Mail: aashish at iastate.edu
> > Ames, Iowa Telephone: +1 515-441-1178
> C++-sig mailing list
> C++-sig at python.org
Iowa State University E-Mail: aashish at iastate.edu
Ames, Iowa Telephone: +1 515-441-1178
More information about the Cplusplus-sig