From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23868 invoked by alias); 8 Feb 2007 16:15:44 -0000 Received: (qmail 23848 invoked by uid 22791); 8 Feb 2007 16:15:42 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Feb 2007 16:15:33 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0) with ESMTP id l18DjWjG026440; Thu, 8 Feb 2007 14:45:32 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0/Submit) id l18DjWo9029777; Thu, 8 Feb 2007 14:45:32 +0100 (CET) Date: Thu, 08 Feb 2007 16:15:00 -0000 Message-Id: <200702081345.l18DjWo9029777@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: gdb-patches@sourceware.org In-reply-to: <20070208131355.GA3489@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 8 Feb 2007 08:13:55 -0500) Subject: Re: XML XInclude support References: <20070206130330.GB31162@nevyn.them.org> <20070129213229.GA17422@nevyn.them.org> <20070206124910.GA31162@nevyn.them.org> <20070207183656.GA14189@nevyn.them.org> <20070207184458.GA15589@nevyn.them.org> <20070207224910.GA26062@nevyn.them.org> <200702081306.l18D62PH028549@brahms.sibelius.xs4all.nl> <20070208131355.GA3489@nevyn.them.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00082.txt.bz2 > Date: Thu, 8 Feb 2007 08:13:55 -0500 > From: Daniel Jacobowitz > > 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!