GNU bug report logs - #18987
the bourne shell printf-vs-\xHH portability trap

Previous Next

Package: grep;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Fri, 7 Nov 2014 17:15:03 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #34 received at 18987 <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: Jim Meyering <jim <at> meyering.net>
Cc: 18987 <at> debbugs.gnu.org
Subject: Re: bug#18987: the bourne shell printf-vs-\xHH portability trap
Date: Sun, 09 Nov 2014 08:38:18 +0900
[Message part 1 (text/plain, inline)]
On Sat, 8 Nov 2014 07:56:48 -0800
Jim Meyering <jim <at> meyering.net> wrote:
> Thank you for working on that.
> I've improved your patch: update the now-shared hex_printf_
> rather than making a copy, use a better definition of that function
> (knowing that "printf %s a b c d e" reuses the format string and
> prints just 5 bytes helps), also update word-multibyte to work
> with the new definition, and rewrite the commit log.
> 
> I'll push after you ACK:

Thanks for the review.  I added to a change the patch as word-multibyte
uses \OOO in printf simply, because use it in other test module e.g.
euc-mb.
[0001-tests-avoid-awk-printf-xHH-portability-trap.patch (text/plain, attachment)]

This bug report was last modified 10 years and 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.