Re: [xml] final output filtering?



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 !

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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