From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Sep 07 2000 - 11:06:58 EDT
On Thu, Sep 07, 2000 at 02:19:07PM +0200, Marcus Lankenau wrote:
>
> Hi!
>
>
> This is not realy a bug, but annoying. We are using libxml with win32 and have content with
> linefeeds. These linefeeds are often corrupted since libxml is reading files as binaries
>
> input = _open (filename, O_RDONLY | _O_BINARY);
>
> and saves files as ascii:
>
> output = fopen(filename, "w");
>
> I changed this (tree.c:4598) to
>
> output = fopen(filename, "wb");
Okay, I propagated a fix in the CVS base to this effect.
Note that libxml2 I/O support would have allowed to easily (ie. without
changing libxml itself) install a workaround for this kind of problems
check the example in the dedicated page:
http://xmlsoft.org/xmlio.html#Example
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 11:43:25 EDT