Re: [xml] xmlSaveUri() bug with % escapes

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Sep 19 2000 - 08:26:43 EDT


On Mon, Sep 18, 2000 at 07:21:53PM -0700, Wayne Davison wrote:
> The xmlSaveUri() function was not handling negative character values
> properly when converting a character into a %XX escape. The simple
> fix would be just to turn all the "val" assignments into:
>
> int val = *(unsigned char *)p++;
>
> However, I went a step further and changed the two switch statements
> that accompany each instance of this into something more compact (and
> hopefully more optimal). If you don't like the whole patch, at least
> fix the "val" assignments.
>
> The patch is attached.

  Sure, no problem. Applied and commited,

    thanks,

Daniel

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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Sep 19 2000 - 09:44:00 EDT