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 #55 received at 18987-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 18987 <18987-done <at> debbugs.gnu.org>
Subject: Re: bug#18987: the bourne shell printf-vs-\xHH portability trap
Date: Sun, 9 Nov 2014 10:29:00 -0800
[Message part 1 (text/plain, inline)]
On Sun, Nov 9, 2014 at 10:19 AM, Jim Meyering <jim <at> meyering.net> wrote:
> 2014-11-08 20:19 GMT-08:00 Jim Meyering <jim <at> meyering.net>:
>> On Sat, Nov 8, 2014 at 7:52 PM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
>>>   hex_printf_()
>>>   {
>>>     hex_printf_format=$(printf '%s\n' "$1" | sed '
>>>       s/^/_/
>>>       s/$/_/
...
>> Do you have time to write the complete patch?
>> I'd like to make a pre-release snapshot tomorrow.
>
> I tried it, and found that this new function makes the multibyte-white-space
> test fail with GNU sed. Here's a simplified example showing where
...

I do like the idea, but now prefer to defer that until after the release.
Instead, I'll address the portability issues you mentioned, with this:
[0001-tests-avoid-hex_printf_-portability-problems.patch (application/octet-stream, 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.