[xml] Re: R: libxml release 1.7.2 (bug?)

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Wed Sep 29 1999 - 09:00:34 EDT


On Wed, Sep 29, 1999 at 02:54:04PM +0200, Andrea LUCIANO wrote:
> I sussessfully compiled libxml on HP-UX 11 using cc, but I had to break the
> IS_BASECHAR(c) in parserInternals.h:
>
> #define IS_BASECHAR1(c) ...
> #define IS_BASECHAR2(c) ...
>
> #define IS_BASECHAR(c) IS_BASECHAR1(c)||IS_BASECHAR2(c)
>
> because it was to long for cpp (as called by cc).

  Gimme a patch, I will incorporate it.

> Maybe it is better define xmlChar as char (not unsigned char), to stop C++
> compilers complaining on casting char * buffer to unsigned char * (I do
> always use char * for strings), isn't it?

  No, for teh very simple reason that an xmlChar is not a C string
it's an UTF-8 encoded string. Even if this part of the implementation
is not complete, that's the intent, and I want a different type since
the content is somewhat different,
  As a note, UTF-8 string should no break client code, it's still
a 0 terminated octet string, just that it's variable lenght character
set. This is high in my task list but it's unfortunately not easy.

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe.
----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:47 EDT