Files
coreutils/tests/misc
Paul Eggert ca9aa75960 stat: do not rely on undefined behavior in printf formats
* src/stat.c (digits, printf_flags): New static vars.
(make_format): New function.
(out_string, out_int, out_uint, out_uint_o, out_uint_x):
(out_minus_zero): Use it to avoid undefined behavior when invoking
printf.
(print_it): Check for invalid conversion specifications such as
%..X and %1-X, which would otherwise rely on undefined behavior
when invoking printf.
* tests/misc/stat-nanoseconds: Check that the "I" printf flag
doesn't mess up in the C locale, as it formerly did on non-GNU
hosts.
2010-11-06 18:09:44 -07:00
..
2010-02-25 08:54:49 -07:00
2010-10-07 20:08:16 +01:00
2010-08-28 19:28:20 +02:00
2010-03-16 23:10:15 +00:00
2010-09-29 11:05:12 +01:00