From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31143 invoked by alias); 8 Feb 2007 13:14:11 -0000 Received: (qmail 31135 invoked by uid 22791); 8 Feb 2007 13:14:10 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 08 Feb 2007 13:13:59 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HF963-0000xi-Qp; Thu, 08 Feb 2007 08:13:55 -0500 Date: Thu, 08 Feb 2007 13:14:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: gdb-patches@sourceware.org, eliz@gnu.org Subject: Re: XML XInclude support Message-ID: <20070208131355.GA3489@nevyn.them.org> Mail-Followup-To: Mark Kettenis , gdb-patches@sourceware.org, eliz@gnu.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702081306.l18D62PH028549@brahms.sibelius.xs4all.nl> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes 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/msg00070.txt.bz2 On Thu, Feb 08, 2007 at 02:06:02PM +0100, Mark Kettenis wrote: > AWK="nawk" /bin/sh ../../../src/gdb/gdb/features/feature_to_c.sh xml-builtin.tmp ../../../src/gdb/gdb/features/gdb-target.dtd ../../../src/gdb/gdb/features/xinclude.dtd > nawk: weird printf conversion %', > input record number 13, file > source line number 15 > nawk: not enough args in printf('%', ) > input record number 13, file > source line number 15 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 -- Daniel Jacobowitz CodeSourcery