Skip Menu |

This queue is for tickets about the URI-Escape-XS CPAN distribution.

Report information
The Basics
Id: 32556
Status: resolved
Priority: 0/
Queue: URI-Escape-XS

People
Owner: Nobody in particular
Requestors: taro.nishino [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.01
Fixed in: (no value)



Subject: ishexnumber?
As you see above, the function ishexnumber isn't always available, for example, in mswin32 platforms. So, I made a patch as follows, and patched it within my personal use. --- XS.xs.org Wed Jan 23 18:35:25 2008 +++ XS.xs Wed Jan 23 18:35:52 2008 @@ -34,6 +34,9 @@ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; +#ifdef WIN32 + #define ishexnumber(s) isXDIGIT(s) +#endif SV *encode_uri_component(SV *str){ int slen = SvCUR(str);
Fixed in Version 0.02. s/ishexdigit/isxdigit/g so it should be compatible with virtually all platforms w/ decent ctype.h Dan the Maintainer Thereof On Wed Jan 23 04:48:54 2008, taro-nishino wrote: Show quoted text
> As you see above, the function ishexnumber isn't always available, for > example, in mswin32 platforms. > So, I made a patch as follows, and patched it within my personal use. > > --- XS.xs.org Wed Jan 23 18:35:25 2008 > +++ XS.xs Wed Jan 23 18:35:52 2008 > @@ -34,6 +34,9 @@ > 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, > 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 > }; > +#ifdef WIN32 > + #define ishexnumber(s) isXDIGIT(s) > +#endif > > SV *encode_uri_component(SV *str){ > int slen = SvCUR(str);