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: Eric Blake <eblake <at> redhat.com>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: Paul Eggert <eggert <at> cs.ucla.edu>, 7325 <at> debbugs.gnu.org, Jim Meyering <jim <at> meyering.net>
Subject: bug#7325: new test failure due to non-portability of printf formats like %05.3s
Date: Thu, 11 Nov 2010 08:24:52 -0700
[Message part 1 (text/plain, inline)]
On 11/11/2010 07:26 AM, Pádraig Brady wrote:
>>>>   %.*X => precision determined by fstimeprec
>>>>
> 
> An alternative perhaps that doesn't require the above override
> behavior and is also forwards compat, is to use %.0X rather than %.*X

That sounds nicer to me.  I look at %.*X and think I have to supply the
precision, but %.0X as a mnemonic of 'show full precision but suppress
trailing zeros' kind of makes sense, and looks nicer than %#.X.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

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

Previous Next


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