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: Paul Eggert
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
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

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.





reply via email to

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