bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7325: new test failure due to non-portability of printf formats like


From: Eric Blake
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
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]