This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XML XInclude support


> 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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]