Thankyou gentlemen for you're interesting ideas.
What I've done today is:

  • recompiled the libxml2 code with preparser option CONV(UTF-8) to keep the embedded constants as ascii/utf-8 chars.
  • Because this breaks the IO code (file open mode strings like "rb" no longer ebcdic), I frontended the samples with some code to read the xml documents into a char buffer.  (I didn't experiment with not using the conv option on the io files because mixing the encodings would have gotten confusing...
  • Then I parsed a utf-8 encoded document successfully!
I copied the group so that this info would be available to the community at large.
 
thanks again..
wcn


-----Original Message-----
From: Daniel Veillard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 13, 2006 12:44 PM
To: Wendell Nichols
Cc: [email protected]
Subject: Re: [xml] libxml2 on zos.

On Wed, Sep 13, 2006 at 09:06:06AM -0700, Wendell Nichols wrote:
> I see that the configure scripts are set up to recognize zos as a
> platform for this library.  I've compiled it on zos 1.4 but it doesn't
> seem to be functional there.  Because the parser.c file has embedded
> literals for things like '<' and '>' and the source has been compiled
> on an ebcdic machine it fails to parse a utf8 document.
> The only way I can think of to deal with this is to turn conversion of
> literals off in the compilation ... to see what happens.  I'll try
> that today, but in the meantime I'm curious if anyone out there is
> using this library on zos?
> Your feed back would be appreciated.

  My recollection is that a similar problem was raised once when compiling on MVS and the solution turned out to update the compiler to get a compiler flag support. But it was a few years ago and I don't remember the exact details.

Daniel

--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to