Re: XML XInclude support

Mark Kettenis
2007-02-08T16:15:44Z

> Date: Thu, 8 Feb 2007 08:13:55 -0500
> From: Daniel Jacobowitz <drow@false.org>
>
> I was afraid of the awk :-( I was very careful to try to avoid
> GNU-ism; I tested with gawk, mawk, and gawk --posix. But apparently
> all three of those let something through that nawk does not support.
> That line is:
>
> } else if (_ord_[c] >= 32 && _ord_[c] < 127) {
> printf "'\''" c "'\'', "
>
> We're inside single quotes here, so what gets passed to awk should be:
>
> printf "'" c "', "
>
> Could you try replacing that line with this, to avoid the % being
> interpreted as a format specifier?
>
> printf "'\''%c'\'', ", c

That seems to work, Thanks!