Date: Fri, 16 May 2014 10:45:15 +0000 (GMT) From: Cyril Kalinchikov <cyr.k@me.com> To: Koop Mast <kwm@rainbow-runner.nl> Cc: gnome@FreeBSD.org Subject: Re: libxml2 encoding problems on pre-10.0 FreeBSDs Message-ID: <3765909c-370b-4e1b-b831-59496260d8dd@me.com>
next in thread | raw e-mail | index | archive | help
Yes, that works okay.=0A=0AOn May 16, 2014, at 02:19 PM, Koop Mast <kwm@ra= inbow-runner.nl> wrote:=0A=0AOn do, 2014-05-15 at 08:15 +0000, Cyril Kalin= chikov wrote:=0A =C2=A0 =C2=A0 =C2=A0 =C2=A0> Hello,=0A =C2=A0 =C2=A0 =C2=A0= =C2=A0> =0A =C2=A0 =C2=A0 =C2=A0 =C2=A0> 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.=0A =C2=A0 =C2=A0 =C2=A0= =C2=A0> =0A =C2=A0 =C2=A0 =C2=A0 =C2=A0> Example (in PHP):=0A =C2=A0 =C2=A0= =C2=A0 =C2=A0> $xml =3D new SimpleXMLElement('<?xml version=3D"1.0" encod= ing=3D"windows-1251"? =C2=A0 =C2=A0 =C2=A0><orders =C2=A0 =C2=A0 =C2=A0 =C2= =A0></orders =C2=A0>');=0A =C2=A0 =C2=A0 =C2=A0 =C2=A0> =0A =C2=A0 =C2=A0 = =C2=A0 =C2=A0> This fails with the "Unsupported encoding" error. Works on = FreeBSD 10+ (where iconv is in the base system).=0A =C2=A0 =C2=A0 =C2=A0 =C2= =A0> This is pretty critical for us.=0A =C2=A0 =C2=A0 =C2=A0 =C2=A0> =0A =C2= =A0 =C2=A0 =C2=A0 =C2=A0> Thanks for a quick fix.=0A=0ACould you try the f= ollowing patch?=0Ahttp://people.freebsd.org/~kwm/libxml2-iconv.diff=0A=0A=0A= =0A=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3765909c-370b-4e1b-b831-59496260d8dd>