Re: [xml] xmlCharEncoding problem



Hi Daniel,

I found the problem - I already tried to use a new version of libxml2 but didn't specify LD_LIBRARY_PATH when starting my application.

The Fedora box isn't my own - it's a user of my application who gave me a account for testing there.

I compiled it against the new version of the lib but the dynamic linker used the system's lib, of course. :-/

Sorry for bothering and thanks for the quick help!

Harry


--On Tuesday, September 27, 2005 11:06:35 AM -0400 Daniel Veillard <veillard redhat com> wrote:

On Tue, Sep 27, 2005 at 04:57:44PM +0200, harry_b mm st wrote:
Hi Daniel,

attached is a little C program, which is, what my application does. It
runs  well on my Debian box and fails on the Fedora machine.

I compiled the code with:
 # gcc -I/usr/include/libxml2 -lxml2 -o xmltest xmltest.c

On Fedora, the little program exits with the message:
bad encoding result: 0

  works for me.

Fedora means very nothing as is for debugging, there have been
4 versions of Fedora Core released, plus there is the updates, etc ...
Similary "Debian" is useless too, there are many versions with different
libxml2 releases !

I hope that is of some use. :-)

  Update your libxml2 version on your fedora machine, I assume it's
behind and you're hitting a bug which was fixed in 2.6.16.
  2.6.16 release notes says:
    "encoding conversion functions return values"

--

1024D/40F14012 18F3 736A 4080 303C E61E  2E72 7E05 1F6E 40F1 4012

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/S dx s: a C++ ULS++++$ P+++ L+++$ !E W++ N+ o? K? !w !O !M
V PS+ PE Y? PGP+++ t+ 5-- X+ R+ !tv b++ DI++ D+ G e* h r++ y++
------END GEEK CODE BLOCK------

Attachment: pgpNyGj14viKn.pgp
Description: PGP signature



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