Re: [Plib-devel] Re: [PATCH] ssg/ssgLoadAC.cxx: fix potential crash; accept DOS line endings
Brought to you by:
sjbaker
From: Frederic B. <fr...@wa...> - 2003-07-03 06:51:55
|
Melchior FRANZ writes: > * Steve Baker -- Thursday 03 July 2003 05:36: > > '.ac' files don't have DOS line endings - even the ones written > > by the Windoze version of AC3D. > > I suspected that already, but there had something to be done. > Either a useful error report (not just an unrecognized empty > token), or allowing the nonsensical DOS line ends. As both > solutions would have taken about the same lines of code, I went > for the more tolerant one. :-) There is no problem either under Linux or Windows using MSVC. In the first case, there is no CR, in the second, the CR is consumed by the file routines when the file is open in text mode. The problem arise when the file is read by cygwin that is configured with unix line endings, opening the file in binary mode. There are CR in the file because it is fetched with CVS on windows. -Fred |