[C++-sig] Re: Re: Re: CVS version on VC++ 7.0
mike at nospam.com
Tue Feb 3 21:53:12 CET 2004
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
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
_, in, out = sys.argv
print "Usage: python %s input_text_file output_file_dos_eol_style" %
for line in file(in, "rU").xreadlines():
print >>out, line
Aashish Chaudhary wrote:
> I didn't get that quite well. Could you please explain it.
>> 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.
>> C++-sig mailing list
>> C++-sig at python.org
> Aashish Chaudhary
> Research Assistant
> Iowa State University E-Mail: aashish at iastate.edu
> Ames, Iowa Telephone: +1 515-441-1178
More information about the Cplusplus-sig