Date: Fri, 18 Jun 2004 17:56:23 +0200 (CEST) Message-Id: <20040618.175623.107679651.andrieu at ijm.jussieu.fr> To: arnold.guillaumot at wanadoo.fr Cc: garrigue at kurims.kyoto-u.ac.jp, lablgtk at kaba.or.jp Subject: Re: Rsvg and GTree problems From: Olivier Andrieu In-Reply-To: <27802347.1087570322416.JavaMail.www at wwinf1003> References: <27802347.1087570322416.JavaMail.www at wwinf1003> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Arnold GUILLAUMOT [Fri, 18 Jun 2004]: > librsvg-2.4.0 / librsvg-dev-2.4.0 > libgsf-1.8.2-20040121 / libgsf-dev-1.8.2 > to have support for svgz files : it is missing in lablgtk2 :-( > libxml2-2.6.4.win32 I've just added support for svgz files. I cannot send you a patch right now because it depends on code that is not in the latest snapshot. > > > 1/ Rsvg > > > It is not possible to load rsvg files on win32 platform with the > > > render_from_file function. Changing opening files with open_in_bin > > > instead of open_in should fix it in rsvg.ml > > > > Hmm, are you sure ? SVG are XML files, so I would classify them as > > text files rather than binary. No, I think it's the code in rsvg.ml > > that's broken. It does a in_channel_length then reads that many bytes > > from the channel: that doesn't work because of the line terminations. > > Could you try this (attached) patch ? > > Yes, you are right. Patch is working on win32. Note that with > open_in_bin it was working too ... Yes, the XML parser works fine if the file is opened in binary too. -- Olivier