GNU bug report logs - #7325
new test failure due to non-portability of printf formats like %05.3s

Previous Next

Package: coreutils;

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

Date: Wed, 3 Nov 2010 18:56:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>
Cc: Pád, raig Brady <P <at> draigBrady.com>, 7325 <at> debbugs.gnu.org, Eric Blake <eblake <at> redhat.com>
Subject: bug#7325: new test failure due to non-portability of printf formats like %05.3s
Date: Wed, 10 Nov 2010 23:11:58 -0800
On 11/10/2010 01:04 AM, Jim Meyering wrote:
> +      /* %.X   => precision defaults to 9
> +         %.5X  => precision is 5
> +         %#.X  => precision is determined by fstimeprec
> +         %#.3X => precision is 3 (specified overrides "#")  */

How about something like this instead?

  %.X => precision is 9 (until POSIX goes sub-nanosecond :-)
  %.5X => precision is 5
  %.*X => precision determined by fstimeprec

Then there's no reason for the "overrides" case.




This bug report was last modified 14 years and 191 days ago.

Previous Next


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