John Darrington <[EMAIL PROTECTED]> writes:

> Looking at the code again, I think the line
>       fwrite (rec, len, 1, w->file);
>
> is not strictly correct.  It ought to read
>
>        fwrite (rec, sizeof (*rec), len, w->file);

*shrug*
No objection to the change, but it can't make a difference either
way.

> I'm also wondering if, on mingw32, putc ('\n', w->file) ought not to
> be followed by putc ('\r', w->file).

I'm pretty sure that we open the output file in text mode, so
that the underlying OS should translate '\n' to whatever is the
correct line terminator for the OS.  (And I think that \r
generally precedes \n.)
-- 
Ben Pfaff 
[EMAIL PROTECTED]
http://benpfaff.org


_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to