Date: Fri, 16 May 2014 12:19:00 +0200 From: Koop Mast <kwm@rainbow-runner.nl> To: Cyril Kalinchikov <cyr.k@me.com> Cc: gnome@FreeBSD.org Subject: Re: libxml2 encoding problems on pre-10.0 FreeBSDs Message-ID: <1400235540.1327.5.camel@crashalot.rainbow-runner.nl> In-Reply-To: <61767973-5851-45d5-b243-4759b4bb77f5@me.com> References: <61767973-5851-45d5-b243-4759b4bb77f5@me.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On do, 2014-05-15 at 08:15 +0000, Cyril Kalinchikov wrote: > Hello, > > Apparently in the current ports snapshot the libxml2 port cannot "find" iconv installed (in a package) and thus only supports utf-8/ascii internal encodings. > > Example (in PHP): > $xml = new SimpleXMLElement('<?xml version="1.0" encoding="windows-1251"?><orders></orders>'); > > This fails with the "Unsupported encoding" error. Works on FreeBSD 10+ (where iconv is in the base system). > This is pretty critical for us. > > Thanks for a quick fix. Could you try the following patch? http://people.freebsd.org/~kwm/libxml2-iconv.diff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1400235540.1327.5.camel>