Re: [xml] final output filtering? (fwd)



[forwarded to list; sorry Daniel]

On Tue, 10 Jun 2003, Daniel Veillard wrote:

On Tue, Jun 10, 2003 at 05:42:46PM +0100, Justin Fletcher wrote:
        fd = fopen(path, "wb");

that is, the conditional case seems completely redundant to me. You want
the data to be treated as binary so I would have thought that you would
always want to open it for binary output. Thus avoiding the problem of
line endings on platforms you haven't yet encountered (broken C libraries
not withstanding).

  the 'b' extension is a pure Microsoftism ... that would break on
most platforms !

It is ? Bother. Well, you learn a new thing every day. Certainly all the
texts I'd seen had referred to it as if it was standard. I only have the
'99 standard claiming that it is standard in that version; I don't have
the earlier standards to check, but I'm assuming that you're correct if
you say that it was not present in earlier versions of the language.

Since it's present in the C99 standard, might it be useful to extend to
include the wb when the compiler is identified as C99-compliant ?

-- 
Gerph {djf0-.3w6e2w2.226,6q6w2q2,2.3,2m4}
URL: http://www.movspclr.co.uk/
... "Bother"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]