Subject: | Work around CPP bug in VAC 5 on AIX |
Date: | Fri, 22 Oct 2010 15:21:59 -0700 |
To: | <bug-Text-CSV_XS [...] rt.cpan.org> |
From: | "Jan Dubois" <jand [...] activestate.com> |
It looks like under certain conditions the C preprocessor would
interpolate the "s" macro parameter inside the format string
for "%s". The simple workaround is to use a longer parameter
name, e.g. "str" instead of "s".
Cheers,
-Jan
PS: It also looks like the cx_pretty_str() function is leaking
an SV on each call:
SV *dsv = newSVpvs ("");
Not sure it matters, as it is just debugging code, but throwing
in an sv_2mortal() shouldn't hurt (although I didn't test it).
Message body is not shown because sender requested not to inline it.