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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>
Cc: 18987 <18987-done <at> debbugs.gnu.org>
Subject: Re: bug#18987: the bourne shell printf-vs-\xHH portability trap
Date: Sun, 09 Nov 2014 12:04:56 -0800
Jim Meyering wrote:
> I tried it, and found that this new function makes the multibyte-white-space
> test fail with GNU sed.

Yes, and the more I look at it the less I like it.  I'm afraid I'm now going 
back to the idea that we should just use octal.  This outputting-hex business is 
more trouble than it's worth.  What happens with the current code, for example, 
when one of the printfs fail?  No error is reported.  If we just used octal it'd 
all be saner.




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.