Re: [xml] final output filtering?



ANSI/ISO C defines the 'b' cases as having no effect on platforms where
text and binary do not differ. if a platform claims to support ANSI/ISO C,
then it must accept the 'b' even if it has no meaning for that platform.

Fred






Daniel Veillard <veillard redhat com> on 06/10/2003 02:16:48 PM

Please respond to veillard redhat com

To:   Justin Fletcher <justin fletcher ntlworld com>
cc:   xml gnome org (bcc: Fred Smith/Computrition)
Subject:  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/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml









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